]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove the useless code. 6305/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 19 Oct 2015 05:57:36 +0000 (13:57 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 19 Oct 2015 06:44:45 +0000 (14:44 +0800)
For get_object_context with can_create is true, we already check
obc->ssc. So don't need other handle

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/ReplicatedPG.cc

index a95253a815befa6fde24c6db7d6e0c149fa022ba..1859ead2e5c685bbf0ced8ef90d23c0fb9f76160 100644 (file)
@@ -8574,9 +8574,6 @@ int ReplicatedPG::find_object_context(const hobject_t& oid,
        << dendl;
     *pobc = obc;
 
-    if (can_create && !obc->ssc)
-      obc->ssc = get_snapset_context(oid, true);
-
     return 0;
   }