]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: OSDMonitor: don't propose on prepare_pool_op()
authorJoao Eduardo Luis <jecluis@gmail.com>
Wed, 28 Aug 2013 16:42:14 +0000 (17:42 +0100)
committerJoao Eduardo Luis <jecluis@gmail.com>
Wed, 28 Aug 2013 23:48:20 +0000 (00:48 +0100)
Except in very special cases, we should let PaxosService take its course
and trigger the proposals itself.  In this case, we were proposing right
before returning to PaxosService, and we were returning false on top of it
(most likely to guarantee that PaxosService wouldn't try to propose).

This doesn't make much sense, so let's do it like all the other cool kids
are doing and let PaxosService decide what's best for us.

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
src/mon/OSDMonitor.cc

index 9fcc0912550bfab1e17a37c357256aab9b971865..f56982bc7375ee9494d8a6a20bdd793e3bb28452 100644 (file)
@@ -3879,8 +3879,7 @@ bool OSDMonitor::prepare_pool_op(MPoolOp *m)
 
  out:
   wait_for_finished_proposal(new OSDMonitor::C_PoolOp(this, m, ret, pending_inc.epoch, &reply_data));
-  propose_pending();
-  return false;
+  return true;
 }
 
 bool OSDMonitor::prepare_pool_op_create(MPoolOp *m)