Loading...
--- Libc/Libc-825.26/db/mpool/FreeBSD/mpool.c
+++ Libc/Libc-1669.40.2/db/mpool/FreeBSD/mpool.c
@@ -45,6 +45,8 @@
#include <unistd.h>
#include "un-namespace.h"
+#include "libc_private.h" // for LIBC_ABORT
+
#include <db.h>
#define __MPOOLINTERFACE_PRIVATE
@@ -110,9 +112,7 @@
* Get a new page of memory.
*/
void *
-mpool_new(mp, pgnoaddr)
- MPOOL *mp;
- pgno_t *pgnoaddr;
+mpool_new(MPOOL *mp, pgno_t *pgnoaddr)
{
struct _hqh *head;
BKT *bp;
@@ -281,7 +281,7 @@
/* Walk the lru chain, flushing any dirty pages to disk. */
TAILQ_FOREACH(bp, &mp->lqh, q) {
- if (bp->flags & MPOOL_DIRTY)
+ if (bp->flags & MPOOL_DIRTY) {
if (mpool_write(mp, bp) == RET_ERROR) {
return (RET_ERROR);
} else {
@@ -289,6 +289,7 @@
if (mp->pgin != NULL)
(mp->pgin)(mp->pgcookie, bp->pgno, bp->page);
}
+ }
}
/* Sync the file descriptor. */