Add assertions

motivated by #32
parent 25662138
......@@ -4132,6 +4132,8 @@ fellow_busy_obj_getspace(struct fellow_busy *fbo, size_t *sz, uint8_t **ptr)
fellow_busy_body_seg_adjust(fbo, fcs);
assert(fcs->state == FCS_BUSY);
AN(fbo->body_seglist);
AN(fbo->body_seglist->fdsl);
fbo->body_seglist->fdsl->nsegs++;
assert(fbo->body_seglist->fdsl->nsegs <= fbo->body_seglist->lsegs);
......
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