Extend tracking of used segments to cover metadata segments.
[cumulus.git] / localdb.h
index 69fb330..1bfaf3b 100644 (file)
--- a/localdb.h
+++ b/localdb.h
@@ -31,9 +31,10 @@ public:
                      int *group);
     bool IsAvailable(const ObjectReference &ref);
     void UseObject(const ObjectReference& ref);
+    void UseSegment(const std::string &segment, double utilization);
 
     void SetSegmentChecksum(const std::string &segment, const std::string &path,
-                            const std::string &checksum);
+                            const std::string &checksum, int size);
     bool GetSegmentChecksum(const std::string &segment,
                             std::string *seg_path, std::string *seg_checksum);
 private: