as soon as the first page fills up, and is marked as (almost) full,
though.
Buffer buf;
uint8 max_avail = 0;
- /*
- * Read the FSM page. The root page is created if it doesn't exist
- * yet, to save future searchers the effort of having to call
- * smgrnblocks() in fsm_readbuf(), only to see that the FSM is
- * completely empty.
- */
- buf = fsm_readbuf(rel, addr, (addr.level != FSM_ROOT_LEVEL));
+ /* Read the FSM page. */
+ buf = fsm_readbuf(rel, addr, false);
/* Search within the page */
if (BufferIsValid(buf))