Commit fda1241b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add asserts to ensure the (hypothetical?) race in #2528 doesn't happen.

parent e57f3e18
......@@ -927,6 +927,10 @@ vbf_fetch_thread(struct worker *wrk, void *priv)
while (stp != F_STP_DONE) {
CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
assert(bo->fetch_objcore->boc->refcount >= 1);
if (bo->fetch_objcore->boc->state < BOS_REQ_DONE)
AN(bo->req);
else
AZ(bo->req);
switch (stp) {
#define FETCH_STEP(l, U, arg) \
case F_STP_##U: \
......
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