]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: removed unused obc check
authorJosh Durgin <jdurgin@redhat.com>
Mon, 23 May 2016 23:51:43 +0000 (16:51 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 9 Jul 2016 01:33:13 +0000 (18:33 -0700)
The one place this was set was removed by e7edf20fb7264bfaeeb30ac0185e9edc925878b6

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/ReplicatedPG.cc

index a624f3722c5ce2953f773430858d41d06912688c..7365a8d1a70744f6b9b7690079f21367f5006aa5 100644 (file)
@@ -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;