Commit 08cf7aef authored by Nils Goroll's avatar Nils Goroll Committed by Geoff Simmons

fix tree traversal when unpending

the continue statement continued the inner loop, in fact the while
(node->state >= ST_UNPENDING) was intended to be continued.

I could neither convince myself that this can not cause an infinite loop
nor could I convince myself that it does.
parent bbc4072b
......@@ -1017,12 +1017,14 @@ worklist_unpend(struct req *req, struct bytes_tree *tree,
next = VSTAILQ_NEXT(node, sibling);
if (next != NULL) {
node = next;
continue;
break;
}
node = node->parent;
}
AZ(node);
if (node != NULL)
continue;
VSLdbg(req, "bytes_unpend: reached root");
set_front(tree, tree->root, req->wrk);
return;
......
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