summaryrefslogtreecommitdiff
path: root/src/osd/OSD.cc
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-05-09 17:25:57 -0700
committerSamuel Just <sam.just@inktank.com>2013-05-09 22:23:46 -0700
commit01a07c1ee1ea2ef134f5fddf19518eb3c0349b53 (patch)
treeaca71620218133170288475aa8f5a754ef5cb3b2 /src/osd/OSD.cc
parentf5a60ca2266c27a182444f737ff1d905d7dd1141 (diff)
downloadceph-01a07c1ee1ea2ef134f5fddf19518eb3c0349b53.tar.gz
OSD: rename clear_temp to recursive_remove_collection()
Signed-off-by: Samuel Just <sam.just@inktank.com>
Diffstat (limited to 'src/osd/OSD.cc')
-rw-r--r--src/osd/OSD.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index e7e52e431d5..91842926f44 100644
--- a/src/osd/OSD.cc
+++ b/src/osd/OSD.cc
@@ -455,7 +455,7 @@ int OSD::convert_collection(ObjectStore *store, coll_t cid)
store->apply_transaction(t);
}
- clear_temp(store, tmp1);
+ recursive_remove_collection(store, tmp1);
store->sync_and_flush();
store->sync();
return 0;
@@ -486,10 +486,10 @@ int OSD::do_convertfs(ObjectStore *store)
++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();
@@ -1505,7 +1505,7 @@ int OSD::read_superblock()
-void OSD::clear_temp(ObjectStore *store, coll_t tmp)
+void OSD::recursive_remove_collection(ObjectStore *store, coll_t tmp)
{
OSDriver driver(
store,
@@ -1727,7 +1727,7 @@ void OSD::load_pgs()
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;
}