Fix db pool worker debug busy-counter from underflowing.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-02-28 00:43:52 +00:00
parent 63b0014f8f
commit 9fb6594975

View File

@@ -320,7 +320,7 @@ fn worker_loop(self: &Arc<Self>, recv: &Receiver<Cmd>) {
fields(
receivers = recv.receiver_count(),
queued = recv.len(),
busy = self.busy.fetch_sub(1, Ordering::Relaxed) - 1,
busy = self.busy.fetch_sub(1, Ordering::AcqRel) - 1,
),
)]
fn worker_wait(self: &Arc<Self>, recv: &Receiver<Cmd>) -> Result<Cmd, RecvError> {