From: Jianpeng Ma Date: Thu, 6 Aug 2015 01:06:54 +0000 (+0800) Subject: osd/ReplicatedPG: Remove the unuseful judgement in get_object_context. X-Git-Tag: v9.1.0~72^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a326bd99b71fe857f5d7e9730e517181d1901ca9;p=ceph.git osd/ReplicatedPG: Remove the unuseful judgement in get_object_context. In this case, attrs always null. So it can remove this judgement. Signed-off-by: Jianpeng Ma --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 29769b8f7a00..0cea50773c7d 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -8320,8 +8320,7 @@ ObjectContextRef ReplicatedPG::get_object_context(const hobject_t& soid, // new object. object_info_t oi(soid); SnapSetContext *ssc = get_snapset_context( - soid, true, - soid.has_snapset() ? attrs : 0); + soid, true, 0); obc = create_object_context(oi, ssc); dout(10) << __func__ << ": " << obc << " " << soid << " " << obc->rwstate