]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: kill the dead create_snapset_context() method 9305/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 24 May 2016 04:33:09 +0000 (12:33 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 26 May 2016 13:08:53 +0000 (21:08 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index 6f31bbf66fe7b591ef7006b9e52d56189cafacbe..09978d7b6a1222e6b5fef54705b93a0f59d40ce7 100644 (file)
@@ -9304,15 +9304,6 @@ void ReplicatedPG::kick_object_context_blocked(ObjectContextRef obc)
   }
 }
 
-SnapSetContext *ReplicatedPG::create_snapset_context(const hobject_t& oid)
-{
-  Mutex::Locker l(snapset_contexts_lock);
-  SnapSetContext *ssc = new SnapSetContext(oid.get_snapdir());
-  _register_snapset_context(ssc);
-  ssc->ref++;
-  return ssc;
-}
-
 SnapSetContext *ReplicatedPG::get_snapset_context(
   const hobject_t& oid,
   bool can_create,
index d076720be7313cd5f28366872cc7517de959f860..7865f9a35b6fb3245dac32408409e385c2090c71 100644 (file)
@@ -1022,7 +1022,6 @@ protected:
 
   void get_src_oloc(const object_t& oid, const object_locator_t& oloc, object_locator_t& src_oloc);
 
-  SnapSetContext *create_snapset_context(const hobject_t& oid);
   SnapSetContext *get_snapset_context(
     const hobject_t& oid,
     bool can_create,