projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve reporting of database errors.
[cumulus.git]
/
statcache.cc
diff --git
a/statcache.cc
b/statcache.cc
index
86886c0
..
099eb70
100644
(file)
--- a/
statcache.cc
+++ b/
statcache.cc
@@
-79,10
+79,13
@@
static int pathcmp(const char *path1, const char *path2)
return pathcmp(slash1 + 1, slash2 + 1);
}
return pathcmp(slash1 + 1, slash2 + 1);
}
-void StatCache::Open(const char *path, const char *snapshot_name)
+void StatCache::Open(const char *path, const char *snapshot_name,
+ const char *snapshot_scheme)
{
oldpath = path;
oldpath += "/statcache";
{
oldpath = path;
oldpath += "/statcache";
+ if (snapshot_scheme != NULL)
+ oldpath = oldpath + "-" + snapshot_scheme;
newpath = oldpath + "." + snapshot_name;
oldcache = new ifstream(oldpath.c_str());
newpath = oldpath + "." + snapshot_name;
oldcache = new ifstream(oldpath.c_str());