]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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, 7 Nov 2017 11:43:22 +0000 (19:43 +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>
(cherry picked from commit da6f7a810055a0dc9e364aca8e6efbfbc32881b3)

src/mon/OSDMonitor.cc

index 45c731499fb9b4ddcaf8a9e9e1721fa3ff1b7926..b79378b0d599f4d6f7f3c40630db31939de95416 100644 (file)
@@ -2846,6 +2846,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)