mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
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:
parent
13a41e14b6
commit
d8b6d4c125
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user