projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store unspecified scheme names in database as empty string, not null.
[cumulus.git]
/
metadata.cc
diff --git
a/metadata.cc
b/metadata.cc
index
f29c486
..
d946386
100644
(file)
--- a/
metadata.cc
+++ b/
metadata.cc
@@
-116,7
+116,7
@@
MetadataWriter::MetadataWriter(TarSegmentStore *store,
{
statcache_path = path;
statcache_path += "/statcache2";
{
statcache_path = path;
statcache_path += "/statcache2";
- if (snapshot_scheme != NULL)
+ if (snapshot_scheme != NULL
&& strlen(snapshot_scheme) > 0
)
statcache_path = statcache_path + "-" + snapshot_scheme;
statcache_tmp_path = statcache_path + "." + snapshot_name;
statcache_path = statcache_path + "-" + snapshot_scheme;
statcache_tmp_path = statcache_path + "." + snapshot_name;