]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: added should_propose callback to auth mon
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 9 Nov 2009 23:00:49 +0000 (15:00 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 9 Nov 2009 23:00:49 +0000 (15:00 -0800)
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h

index 8aacb28c21bf70d6d3e0e2ca307b5b4c0c0aec44..65743c5a5a72ceb31a192482414afab904f2a120 100644 (file)
@@ -224,7 +224,11 @@ void AuthMonitor::increase_max_global_id()
   inc.inc_type = GLOBAL_ID;
   inc.max_global_id = max_global_id;
   pending_auth.push_back(inc);
-  propose_pending();
+}
+
+bool AuthMonitor::should_propose(double& delay)
+{
+  return (pending_auth.size() > 0);
 }
 
 void AuthMonitor::init()
index d09d78819b1835473bb914b426de820444441673..4a9da02f0831395a3b3086b8c28c623e57c92d5a 100644 (file)
@@ -84,6 +84,7 @@ private:
 
   void on_active();
   void election_finished();
+  bool should_propose(double& delay);
 
   void create_initial(bufferlist& bl);
   bool update_from_paxos();