X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=scandir.cc;h=818a460be8832340156830ec170c45b0077af31b;hb=ca9a4006c4ffc86a24d653d1b1b68bec4a6fbfdf;hp=7c940f5d214b6d1de439372a58221d0b1db83ce6;hpb=fbb042e3bbfe0796b0986fa0ffa9cde75c6e3bce;p=cumulus.git diff --git a/scandir.cc b/scandir.cc index 7c940f5..818a460 100644 --- a/scandir.cc +++ b/scandir.cc @@ -114,7 +114,7 @@ int64_t dumpfile(int fd, dictionary &file_info, const string &path, * re-reading the entire contents. */ bool cached = false; - if (metawriter->matched() && metawriter->is_unchanged(&stat_buf)) { + if (metawriter->find(path) && metawriter->is_unchanged(&stat_buf)) { cached = true; list blocks = metawriter->get_blocks(); @@ -249,8 +249,6 @@ void dump_inode(const string& path, // Path within snapshot printf("%s\n", path.c_str()); - metawriter->find(path); - file_info["name"] = uri_encode(path); file_info["mode"] = encode_int(stat_buf.st_mode & 07777, 8); file_info["ctime"] = encode_int(stat_buf.st_ctime);