Tigthen assertions in fellow_busy_body_seg_next

These would have made analyzing #33 much easier. :|
parent 3850cded
......@@ -3928,8 +3928,8 @@ fellow_busy_body_seg_next(struct fellow_busy *fbo)
CHECK_OBJ_NOTNULL(fbo, FELLOW_BUSY_MAGIC);
fcsl = fbo->body_seglist;
AN(fcsl->fdsl);
CHECK_OBJ_NOTNULL(fcsl, FELLOW_CACHE_SEGLIST_MAGIC);
CHECK_OBJ_NOTNULL(fcsl->fdsl, FELLOW_DISK_SEGLIST_MAGIC);
assert(fcsl->fdsl->nsegs <= fcsl->lsegs);
if (fcsl->fdsl->nsegs == fcsl->lsegs ||
fcsl->segs[fcsl->fdsl->nsegs].state == FCS_INIT) {
......
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