]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: rename clear_temp to recursive_remove_collection()
authorSamuel Just <sam.just@inktank.com>
Fri, 10 May 2013 00:25:57 +0000 (17:25 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 10 May 2013 05:23:46 +0000 (22:23 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h
src/tools/ceph-filestore-dump.cc

index e7e52e431d56f1fea1176e69c89efac4d1f76c78..91842926f44f8d6ab51833b9cc2cb08d9da5a9b4 100644 (file)
@@ -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;
     }
 
index 528896a73a53403227a22ba6e1576250b82c5a94..a4c2bf8c900daf7465014658d9150dcc61c45199 100644 (file)
@@ -630,7 +630,7 @@ public:
     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:
index cbde3a52d4783f0fe4ec18dc50cfc6c8c741b1c6..b63799a0e1f334e846746d541f4c035d9c6433f7 100644 (file)
@@ -396,7 +396,7 @@ int finish_remove_pgs(ObjectStore *store, uint64_t *next_removal_seq)
 
     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;
     }