]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: continuously subscribe to osd map on pause
authorJohn Spray <john.spray@redhat.com>
Thu, 16 Oct 2014 18:35:34 +0000 (19:35 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 16 Dec 2014 20:45:58 +0000 (20:45 +0000)
We were doing this on FULL, should also have done it
on PAUSERD and PAUSEWR, to avoid paused requests
staying that way forever.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Objecter.cc

index 8f30157418eab3f52dcf84aa5f3c5c1b26aec2e7..f5df0bb0749bb2d3dd5ad27caaed6315e207f6c1 100644 (file)
@@ -1436,7 +1436,9 @@ int Objecter::_maybe_request_map()
 {
   assert(rwlock.is_locked());
   int flag = 0;
-  if (osdmap_full_flag()) {
+  if (osdmap_full_flag()
+      || osdmap->test_flag(CEPH_OSDMAP_PAUSERD)
+      || osdmap->test_flag(CEPH_OSDMAP_PAUSEWR)) {
     ldout(cct, 10) << "_maybe_request_map subscribing (continuous) to next osd map (FULL flag is set)" << dendl;
   } else {
     ldout(cct, 10) << "_maybe_request_map subscribing (onetime) to next osd map" << dendl;