X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=metadata.cc;h=8de1a00ac0aaa8e4e22a7897ec76b3bd22ae3cb2;hb=dd553bb0b2ac2fe7a1904d2f2670f37e3bb25ae6;hp=f29c48600de0d5b089a86757ac71ab4f6998d478;hpb=0dfc70e01ddb7d2bce0db03d5364c0bd3a2bb308;p=cumulus.git diff --git a/metadata.cc b/metadata.cc index f29c486..8de1a00 100644 --- a/metadata.cc +++ b/metadata.cc @@ -24,6 +24,8 @@ * handling of the statcache, and re-use of metadata between snapshots. */ +#include +#include #include #include #include @@ -116,7 +118,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;