From 247d5cc432aac8fe4a64c749b6c020cda169d46e Mon Sep 17 00:00:00 2001 From: Meng Qingzhong Date: Mon, 25 Dec 2023 14:28:46 +0800 Subject: [PATCH] fix an issue with forgetting to unlock --- src/braft/replicator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/braft/replicator.cpp b/src/braft/replicator.cpp index 65aea0df..ac990fa5 100644 --- a/src/braft/replicator.cpp +++ b/src/braft/replicator.cpp @@ -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; }