]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/ConfigMonitor: process subs from update_from_paxos
authorSage Weil <sage@redhat.com>
Mon, 5 Mar 2018 19:38:13 +0000 (13:38 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:50 +0000 (14:44 -0600)
This is what OSDMonitor and MDSMonitor do.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/ConfigMonitor.cc

index bdf865d63b46f48edc049ed45eeb09bb5e06ee48..6614919662f6340affb300b42594cd374bef3c20 100644 (file)
@@ -47,6 +47,7 @@ void ConfigMonitor::update_from_paxos(bool *need_bootstrap)
   version = get_last_committed();
   dout(10) << __func__ << " " << version << dendl;
   load_config();
+  check_all_subs();
 }
 
 void ConfigMonitor::create_pending()
@@ -509,7 +510,6 @@ void ConfigMonitor::tick()
 
 void ConfigMonitor::on_active()
 {
-  check_all_subs();
 }
 
 void ConfigMonitor::load_config()