X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;ds=sidebyside;f=localdb.h;h=eb0955deb3151810803f5ffdbe6bb232b3e8ad9d;hb=6b00faf9826faa0013e8cccc55086724f37c44e5;hp=3a888707bbf94827c1b7e0cb17665e554a9da4bb;hpb=da87780779a2f165503d019ee0b59d10e5d31ec8;p=cumulus.git diff --git a/localdb.h b/localdb.h index 3a88870..eb0955d 100644 --- a/localdb.h +++ b/localdb.h @@ -28,8 +28,11 @@ public: ObjectReference FindObject(const std::string &checksum, int64_t size); void UseObject(const ObjectReference& ref); private: - std::string snapshot; sqlite3 *db; + int64_t snapshotid; + + int64_t SegmentToId(const std::string &segment); + std::string IdToSegment(int64_t segmentid); }; #endif // _LBS_LOCALDB_H