From: Josh Durgin Date: Mon, 23 May 2016 23:51:43 +0000 (-0700) Subject: ReplicatedPG: removed unused obc check X-Git-Tag: ses5-milestone5~413^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b675726c0eb2cbf24cf19dbe23e1db648f5b818b;p=ceph.git ReplicatedPG: removed unused obc check The one place this was set was removed by e7edf20fb7264bfaeeb30ac0185e9edc925878b6 Signed-off-by: Josh Durgin --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index a624f3722c5c..7365a8d1a707 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -9795,17 +9795,6 @@ void ReplicatedPG::mark_all_unfound_lost( default: assert(0); } - - if (obc) { - bool got = manager.get_lock_type( - ObjectContext::RWState::RWEXCL, - oid, - obc, - OpRequestRef()); - if (!got) { - assert(0 == "Couldn't lock unfound object?"); - } - } } info.stats.stats_invalid = true;