/* XXX These values could be set by the bt_psplit routine. The problem is that the entry has to be popped off of the stack etc. or the values have to be passed all the way back to bt_split/bt_rroot and it's not very clean.  */
static recno_t rec_total(PAGE *h)
/* XXX These values could be set by the bt_psplit routine. The problem is that the entry has to be popped off of the stack etc. or the values have to be passed all the way back to bt_split/bt_rroot and it's not very clean.  */
static recno_t rec_total(PAGE *h)
{
	recno_t recs;
	indx_t nxt, top;
	for (recs = 0, nxt = 0, top = NEXTINDEX(h); nxt < top; ++nxt)
		recs += GETRINTERNAL(h, nxt)->nrecs;
	return (recs);
}