]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mon: OSDMonitor: only thrash and propose if we are the leader"
authorSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 23:23:04 +0000 (16:23 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 23:23:04 +0000 (16:23 -0700)
This reverts commit 5eac38797d9eb5a59fcff1d81571cff7a2f10e66.

src/mon/OSDMonitor.cc

index 65443b2354adc89a590f36f4c46f9617e09703d5..5c7573e4d604d660565048459a3771cfa1a03447 100644 (file)
@@ -297,14 +297,8 @@ void OSDMonitor::on_active()
   send_to_waiting();
   check_subs();
 
-  if (thrash_map) {
-    if (is_leader()) {
-      if (thrash())
-       propose_pending();
-    } else {
-      thrash_map = 0;
-    }
-  }
+  if (thrash_map && thrash())
+    propose_pending();
 
   if (mon->is_leader())
     mon->clog.info() << "osdmap " << osdmap << "\n";