Include scheme name in statcache file, so localdb directory can be shared.
[cumulus.git] / scandir.cc
index dba840d..6e672c6 100644 (file)
@@ -683,7 +683,8 @@ int main(int argc, char *argv[])
 
     /* Initialize the stat cache, for skipping over unchanged files. */
     statcache = new StatCache;
-    statcache->Open(localdb_dir.c_str(), desc_buf);
+    statcache->Open(localdb_dir.c_str(), desc_buf,
+                    backup_scheme.size() ? backup_scheme.c_str() : NULL);
 
     scanfile(".", false);