]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: update mgrmap when active goes offline 14220/head
authorJohn Spray <john.spray@redhat.com>
Wed, 29 Mar 2017 09:07:34 +0000 (10:07 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 29 Mar 2017 09:09:43 +0000 (10:09 +0100)
Fixes: http://tracker.ceph.com/issues/19407
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MgrMonitor.cc

index d9cee80b463fc2ba15c026fe63c95d14066c5d04..d4756a15006c475fb8b10d50c0f7639a9191d25c 100644 (file)
@@ -315,10 +315,10 @@ void MgrMonitor::tick()
       && last_beacon.at(pending_map.active_gid) < cutoff) {
 
     drop_active();
+    propose = true;
     dout(4) << "Dropping active" << pending_map.active_gid << dendl;
     if (promote_standby()) {
       dout(4) << "Promoted standby " << pending_map.active_gid << dendl;
-      propose = true;
     } else {
       dout(4) << "Active is laggy but have no standbys to replace it" << dendl;
     }