lib/libc/db/mpool/mpool.c
int
mpool_close(MPOOL *mp)
{
	BKT *bp;

	/* Free up any space allocated to the lru pages. */
	while (!TAILQ_EMPTY(&mp->lqh)) {
		bp = TAILQ_FIRST(&mp->lqh);
		TAILQ_REMOVE(&mp->lqh, bp, q);
		free(bp);
	}

	/* Free the MPOOL cookie. */
	free(mp);
	return (RET_SUCCESS);
}
/*
 * mpool_close
 *	Close the buffer pool.
 */
mpool_close
Close the buffer pool.
mpool_close Close the buffer pool .
int
mpool_close(MPOOL *mp)
{
	BKT *bp;
	while (!TAILQ_EMPTY(&mp->lqh)) {
		bp = TAILQ_FIRST(&mp->lqh);
		TAILQ_REMOVE(&mp->lqh, bp, q);
		free(bp);
	}
	free(mp);
	return (RET_SUCCESS);
}
int mpool_close ( MPOOL * mp ) { BKT * bp ; while ( ! TAILQ_EMPTY ( & mp -> lqh ) ) { bp = TAILQ_FIRST ( & mp -> lqh ) ; TAILQ_REMOVE ( & mp -> lqh , bp , q ) ; free ( bp ) ; } free ( mp ) ; return ( RET_SUCCESS ) ; }
mpool_close
      Close the buffer pool.
mpool_close Close the buffer pool .
/* Free up any space allocated to the lru pages. */ /* Free the MPOOL cookie. */