]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/ConfigMonitor: only propose if leader
authorSage Weil <sage@redhat.com>
Wed, 29 Jan 2020 23:18:04 +0000 (17:18 -0600)
committerSage Weil <sage@redhat.com>
Wed, 29 Jan 2020 23:18:04 +0000 (17:18 -0600)
Introduced by 08fcf01c040e0caaf5b418d300f774bf8c3033da, which activated
this (broken) code path.

Fixes: https://tracker.ceph.com/issues/43892
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/ConfigMonitor.cc

index 9197e221a7c213b26294408270212fd42bdebf12..b39d3c5f1830b2d1bbe9ed9e72e74fac18682a7c 100644 (file)
@@ -704,7 +704,7 @@ update:
 
 void ConfigMonitor::tick()
 {
-  if (!is_active()) {
+  if (!is_active() || !mon->is_leader()) {
     return;
   }
   dout(10) << __func__ << dendl;