X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=metadata.cc;h=d9463869af4bdfed799bcc654ebfac970d9af95b;hb=d3f9ee42a4023631059f16cc2a8b96b9540750b2;hp=f29c48600de0d5b089a86757ac71ab4f6998d478;hpb=0dfc70e01ddb7d2bce0db03d5364c0bd3a2bb308;p=cumulus.git diff --git a/metadata.cc b/metadata.cc index f29c486..d946386 100644 --- a/metadata.cc +++ b/metadata.cc @@ -116,7 +116,7 @@ MetadataWriter::MetadataWriter(TarSegmentStore *store, { 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;