*
* When creating backup snapshots, maintain a local database of data blocks and
* checksums, in addition to the data contents (which may be stored remotely).
*
* When creating backup snapshots, maintain a local database of data blocks and
* checksums, in addition to the data contents (which may be stored remotely).
void Close();
void StoreObject(const ObjectReference& ref,
const std::string &checksum, int64_t size, double age);
ObjectReference FindObject(const std::string &checksum, int64_t size);
void Close();
void StoreObject(const ObjectReference& ref,
const std::string &checksum, int64_t size, double age);
ObjectReference FindObject(const std::string &checksum, int64_t size);
- bool IsOldObject(const std::string &checksum, int64_t size, double *age);
+ bool IsOldObject(const std::string &checksum, int64_t size, double *age,
+ int *group);
- const std::string &checksum);
+ const std::string &checksum, int size);
+ bool GetSegmentChecksum(const std::string &segment,
+ std::string *seg_path, std::string *seg_checksum);