]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
poolop: do op immediately, instead of waiting for timeout
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 3 May 2010 23:57:10 +0000 (16:57 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 3 May 2010 23:57:51 +0000 (16:57 -0700)
src/mon/OSDMonitor.cc

index c76184b532124f11936e88467ea0c995aaa88ad7..24c15feffa1602d79dfcb2b89cd76698560af8dd 100644 (file)
@@ -1515,7 +1515,8 @@ bool OSDMonitor::prepare_pool_op(MPoolOp *m)
   pp->set_snap_epoch(pending_inc.epoch);
 
   paxos->wait_for_commit(new OSDMonitor::C_PoolOp(this, m, 0, pending_inc.epoch, blp));
-  return true;
+  propose_pending();
+  return false;
 }
 
 bool OSDMonitor::prepare_pool_op_create(MPoolOp *m)