Initial cut at re-using objects from old segments when contents match.
[cumulus.git] / localdb.h
index 8a45e0e..6035e5d 100644 (file)
--- a/localdb.h
+++ b/localdb.h
@@ -25,6 +25,7 @@ public:
     void Close();
     void StoreObject(const ObjectReference& ref,
                      const std::string &checksum, int64_t size);
+    ObjectReference FindObject(const std::string &checksum, int64_t size);
 private:
     sqlite3 *db;
 };