]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: skip ping if PAUSERD
authorSage Weil <sage@redhat.com>
Sun, 9 Nov 2014 15:42:34 +0000 (07:42 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:39 +0000 (10:32 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc

index 0570d9778eb7b2b395d3e5a298099e32cd37cf7e..b3c5bbb1e543f1110dc8e7d66f7a1d04e27829b9 100644 (file)
@@ -506,6 +506,10 @@ void Objecter::_send_linger_ping(LingerOp *info)
     ldout(cct, 10) << __func__ << " " << info->linger_id << " SKIPPING" << dendl;
     return;
   }
+  if (osdmap->test_flag(CEPH_OSDMAP_PAUSERD)) {
+    ldout(cct, 10) << __func__ << " PAUSERD" << dendl;
+    return;
+  }
 
   utime_t now = ceph_clock_now(NULL);
   ldout(cct, 10) << __func__ << " " << info->linger_id << " now " << now << dendl;