]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/OSDMonitor: bypass checks if pg_temp.forced
authorKefu Chai <kchai@redhat.com>
Tue, 26 Sep 2017 07:50:08 +0000 (15:50 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Oct 2017 03:15:32 +0000 (11:15 +0800)
originally, monitor ignores the pg_temp messages sent from replica osds,
but to re-trigger peering if replica osd's pg number drops down below
the setting, we need to bypass the checks.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index cff19f73eba2ff0f47b7ef0d4372f2c6227d39f9..53096a71d5d9b4c67c8c9ee65beaad65077dca91 100644 (file)
@@ -2643,6 +2643,10 @@ bool OSDMonitor::preprocess_pgtemp(MonOpRequestRef op)
     goto ignore;
   }
 
+  if (m->forced) {
+    return false;
+  }
+
   for (auto p = m->pg_temp.begin(); p != m->pg_temp.end(); ++p) {
     dout(20) << " " << p->first
             << (osdmap.pg_temp->count(p->first) ? osdmap.pg_temp->get(p->first) : empty)