X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=scandir.cc;h=cf66ea63ab2fa41d2bfc242278ce1ecc39717086;hb=1b39ce3ff11a;hp=654f9fbb99418455e9821299a7d1c736782026cf;hpb=d3c10b747ecec0acc14863fc12db9661c3f88128;p=cumulus.git diff --git a/scandir.cc b/scandir.cc index 654f9fb..cf66ea6 100644 --- a/scandir.cc +++ b/scandir.cc @@ -138,7 +138,7 @@ int64_t dumpfile(int fd, dictionary &file_info, const string &path, const ObjectReference &ref = *i; object_list.push_back(ref.to_string()); if (ref.is_normal()) - segment_list.insert(ref.get_segment()); + add_segment(ref.get_segment()); db->UseObject(ref); } size = stat_buf.st_size; @@ -228,7 +228,7 @@ int64_t dumpfile(int fd, dictionary &file_info, const string &path, object_list.push_back(ref.to_string()); if (ref.is_normal()) - segment_list.insert(ref.get_segment()); + add_segment(ref.get_segment()); db->UseObject(ref); size += bytes;