From: Jianpeng Ma Date: Mon, 19 Oct 2015 05:57:36 +0000 (+0800) Subject: osd: remove the useless code. X-Git-Tag: v10.0.0~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6305%2Fhead;p=ceph.git osd: remove the useless code. 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 --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index a95253a815be..1859ead2e5c6 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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; }