ReplicatedPG: release_op_ctx_locks in all-applied, not all-committed

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-02-03 17:10:45 -08:00
parent 13a41e14b6
commit d8b6d4c125

View File

@ -6100,8 +6100,6 @@ void ReplicatedPG::eval_repop(RepGather *repop)
// ondisk?
if (repop->all_committed) {
release_op_ctx_locks(repop->ctx);
log_op_stats(repop->ctx);
publish_stats_to_osd();
@ -6144,6 +6142,8 @@ void ReplicatedPG::eval_repop(RepGather *repop)
// applied?
if (repop->all_applied) {
release_op_ctx_locks(repop->ctx);
// send dup acks, in order
if (waiting_for_ack.count(repop->v)) {
assert(waiting_for_ack.begin()->first == repop->v);