Add "prune database" command to lbs-util.
[cumulus.git] / statcache.h
index e0e2fbb..6e4af2c 100644 (file)
@@ -35,7 +35,8 @@
 
 class StatCache {
 public:
-    void Open(const char *path, const char *snapshot_name);
+    void Open(const char *path, const char *snapshot_name,
+              const char *snapshot_scheme);
     void Close();
     bool Find(const std::string &path, const struct stat *stat_buf);
     void Save(const std::string &path, struct stat *stat_buf,
@@ -56,7 +57,7 @@ private:
     /* Information about one file read from the old cache. */
     bool end_of_cache;
     bool old_is_validated;
-    int64_t old_mtime, old_ctime, old_inode;
+    int64_t old_mtime, old_ctime, old_inode, old_size;
     std::string old_name, old_checksum;
     std::list<ObjectReference> old_contents;
 };