]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: remove unused routine
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Tue, 20 Dec 2016 04:36:03 +0000 (12:36 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Tue, 20 Dec 2016 04:36:03 +0000 (12:36 +0800)
_kludge_temp_object_collection is unused routine now.

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/os/filestore/FileStore.h

index 300d6fd49136ee44a49b1eb49b1102c8224b0655..9ca0c37f321dba255830021f2dd29df6e3b8cb4c 100644 (file)
@@ -170,12 +170,6 @@ private:
     // - hammer temp case: cid is pg (or already temp), object pool is -1
     return cid.is_pg() && oid.hobj.pool <= -1;
   }
-  void _kludge_temp_object_collection(coll_t& cid, const ghobject_t& oid) {
-    // - normal temp case: cid is pg, object is temp (pool < -1)
-    // - hammer temp case: cid is pg (or already temp), object pool is -1
-    if (cid.is_pg() && oid.hobj.pool <= -1)
-      cid = cid.get_temp();
-  }
   void init_temp_collections();
 
   // ObjectMap