]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clean up RGWShardedOmapCRManager on early return 11505/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 11 Oct 2016 19:23:16 +0000 (15:23 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 14 Oct 2016 20:43:43 +0000 (16:43 -0400)
ShardedOmapCRManager is spawning coroutines that sleep. if we don't
finish them before trying to drain_all(), they'll lead to deadlock

Fixes: http://tracker.ceph.com/issues/17571
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync.cc

index 947be259ff6f60fc14eb2f1b22a62963488a103e..b34e7fe6891667faa5cbe4e67f845b937e94c1e9 100644 (file)
@@ -814,6 +814,7 @@ public:
       }
       if (get_ret_status() < 0) {
         ldout(cct, 0) << "ERROR: failed to fetch metadata sections" << dendl;
+        yield entries_index->finish();
         yield lease_cr->go_down();
         drain_all();
        return set_cr_error(get_ret_status());
@@ -829,6 +830,7 @@ public:
        }
         if (get_ret_status() < 0) {
           ldout(cct, 0) << "ERROR: failed to fetch metadata section: " << *sections_iter << dendl;
+          yield entries_index->finish();
           yield lease_cr->go_down();
           drain_all();
           return set_cr_error(get_ret_status());