Commit 5c37624f authored by Nils Goroll's avatar Nils Goroll Committed by Dridi Boukelmoune

wake up vbp_thread after a probe is done

The due time of the probe which has just finished may be earlier than
the previously earliest due time, so vbp_thread needs to be woken up to
update the nxt value

Fixes #2976
parent 15ed6cc8
......@@ -439,6 +439,7 @@ vbp_task(struct worker *wrk, void *priv)
vt->due = VTIM_real() + vt->interval;
binheap_delete(vbp_heap, vt->heap_idx);
binheap_insert(vbp_heap, vt);
AZ(pthread_cond_signal(&vbp_cond));
}
}
Lck_Unlock(&vbp_mtx);
......
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