Commit 3075445e authored by Mark Andrews's avatar Mark Andrews
Browse files

lock dispatch before reporting state

parent caf073db
Pipeline #26151 failed with stages
in 40 minutes and 48 seconds
......@@ -1334,12 +1334,12 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
qid = disp->qid;
LOCK(&disp->lock);
dispatch_log(disp, LVL(90),
"got TCP packet: requests %d, buffers %d, recvs %d",
disp->requests, disp->tcpbuffers, disp->recv_pending);
LOCK(&disp->lock);
INSIST(disp->recv_pending != 0);
disp->recv_pending = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment