Skip to content

Commit

Permalink
Merge pull request #430 from mengqingzhong/unlock
Browse files Browse the repository at this point in the history
fix an issue with forgetting to unlock
  • Loading branch information
PFZheng committed Dec 28, 2023
2 parents f43c6a3 + 247d5cc commit 83821c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/braft/replicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ int Replicator::_continue_sending(void* arg, int error_code) {
// 1. pipeline is enabled and
// 2. disable readonly mode triggers another replication
if (r->_wait_id != 0) {
bthread_id_unlock(id);
return 0;
}

Expand Down

0 comments on commit 83821c2

Please sign in to comment.