store->apply_transaction(t);
}
- clear_temp(store, tmp1);
+ recursive_remove_collection(store, tmp1);
store->sync_and_flush();
store->sync();
return 0;
++i) {
pg_t pgid;
if (i->is_temp(pgid))
- clear_temp(store, *i);
+ recursive_remove_collection(store, *i);
else if (i->to_str() == "convertfs_temp" ||
i->to_str() == "convertfs_temp1")
- clear_temp(store, *i);
+ recursive_remove_collection(store, *i);
}
store->flush();
-void OSD::clear_temp(ObjectStore *store, coll_t tmp)
+void OSD::recursive_remove_collection(ObjectStore *store, coll_t tmp)
{
OSDriver driver(
store,
if (it->is_temp(pgid) ||
it->is_removal(&seq, &pgid)) {
dout(10) << "load_pgs " << *it << " clearing temp" << dendl;
- clear_temp(store, *it);
+ recursive_remove_collection(store, *it);
continue;
}
hobject_t oid(sobject_t("infos", CEPH_NOSNAP));
return oid;
}
- static void clear_temp(ObjectStore *store, coll_t tmp);
+ static void recursive_remove_collection(ObjectStore *store, coll_t tmp);
private:
if (it->is_temp(pgid)) {
cout << "finish_remove_pgs " << *it << " clearing temp" << std::endl;
- OSD::clear_temp(store, *it);
+ OSD::recursive_remove_collection(store, *it);
continue;
}