From: Michael Vrable Date: Wed, 10 Sep 2014 21:16:28 +0000 (-0700) Subject: Do not include object checksums in file contents listings. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=ae5a596823b8ca4860f4487f5e228e93f73bb050;p=cumulus.git Do not include object checksums in file contents listings. Do not list object-level checksums as these will make the metadata larger, and the file-level checksum already ensures the file contents on restore are correct. --- diff --git a/main.cc b/main.cc index 742af6c..daad058 100644 --- a/main.cc +++ b/main.cc @@ -314,6 +314,12 @@ int64_t dumpfile(int fd, dictionary &file_info, const string &path, while (!refs.empty()) { ref = refs.front(); refs.pop_front(); + + // The file-level checksum guarantees integrity of the data. + // To reduce the metadata log size, do not include checksums on + // individual objects. + ref.clear_checksum(); + object_list.push_back(ref.to_string()); db->UseObject(ref); }