Compute checksums of segments and store them in the local database.
[cumulus.git] / localdb.h
index 0fce30d..45bb132 100644 (file)
--- a/localdb.h
+++ b/localdb.h
@@ -30,6 +30,9 @@ public:
     bool IsOldObject(const std::string &checksum, int64_t size, double *age);
     bool IsAvailable(const ObjectReference &ref);
     void UseObject(const ObjectReference& ref);
+
+    void SetSegmentChecksum(const std::string &segment, const std::string &path,
+                            const std::string &checksum);
 private:
     sqlite3 *db;
     int64_t snapshotid;