X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=localdb.h;h=6d2190d671c3a2d52c83ef43b63ede22ee7bf857;hp=7764aeddad3685529176cd420c74fbb8a5b5a847;hb=fbe7425ae37564a99eb49133561eea5f1a6c7877;hpb=ad1381b6da02a65ebadfc2f466e9bf6ab9086229 diff --git a/localdb.h b/localdb.h index 7764aed..6d2190d 100644 --- a/localdb.h +++ b/localdb.h @@ -49,10 +49,11 @@ public: void UseObject(const ObjectReference& ref); std::set GetUsedSegments(); - void SetSegmentChecksum(const std::string &segment, const std::string &path, + void SetSegmentMetadata(const std::string &segment, const std::string &path, const std::string &checksum, - int data_size, int disk_size); - bool GetSegmentChecksum(const std::string &segment, + const std::string &type, int data_size, + int disk_size); + bool GetSegmentMetadata(const std::string &segment, std::string *seg_path, std::string *seg_checksum); bool LoadChunkSignatures(ObjectReference ref,