From f2a234599b857d06dabe7a7c7025e0aa0fca3803 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Mon, 19 Oct 2015 13:57:36 +0800 Subject: [PATCH] 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 --- src/osd/ReplicatedPG.cc | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.47.3