Extend local database once more.
[cumulus.git] / localdb.h
index 3a88870..eb0955d 100644 (file)
--- 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