]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: bail if deleting in _finish_recovery
authorSamuel Just <sam.just@inktank.com>
Fri, 19 Apr 2013 17:50:43 +0000 (10:50 -0700)
committerSamuel Just <sam.just@inktank.com>
Sat, 20 Apr 2013 00:10:26 +0000 (17:10 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index a2fdecc89ae7a0f3196a0ed8196561ebb14ceab1..0cc504e265b81cffe1a5ea02d7120db3f403abeb 100644 (file)
@@ -1980,6 +1980,10 @@ void PG::finish_recovery(list<Context*>& tfin)
 void PG::_finish_recovery(Context *c)
 {
   lock();
+  if (deleting) {
+    unlock();
+    return;
+  }
   if (c == finish_sync_event) {
     dout(10) << "_finish_recovery" << dendl;
     finish_sync_event = 0;