From: Kefu Chai Date: Tue, 26 Sep 2017 07:50:08 +0000 (+0800) Subject: mon/OSDMonitor: bypass checks if pg_temp.forced X-Git-Tag: v12.2.2~39^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df611786d2882e346075f5a32aef46bea3c36d47;p=ceph.git mon/OSDMonitor: bypass checks if pg_temp.forced 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 (cherry picked from commit da6f7a810055a0dc9e364aca8e6efbfbc32881b3) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 45c731499fb9..b79378b0d599 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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)