From: Apple Date: Wed, 2 May 2007 06:47:52 +0000 (+0000) Subject: Libc-391.2.10.tar.gz X-Git-Tag: mac-os-x-10410ppc^0 X-Git-Url: https://git.saurik.com/apple/libc.git/commitdiff_plain/8660941ad630afd60a9b2fc76ce5e8fce4de00d7 Libc-391.2.10.tar.gz --- diff --git a/db/mpool/FreeBSD/mpool.c.patch b/db/mpool/FreeBSD/mpool.c.patch new file mode 100644 index 0000000..d1de995 --- /dev/null +++ b/db/mpool/FreeBSD/mpool.c.patch @@ -0,0 +1,23 @@ +--- mpool.c.orig 2006-12-13 22:19:43.000000000 -0800 ++++ mpool.c 2006-12-13 22:27:26.000000000 -0800 +@@ -294,10 +294,16 @@ + BKT *bp; + + /* Walk the lru chain, flushing any dirty pages to disk. */ +- TAILQ_FOREACH(bp, &mp->lqh, q) +- if (bp->flags & MPOOL_DIRTY && +- mpool_write(mp, bp) == RET_ERROR) +- return (RET_ERROR); ++ TAILQ_FOREACH(bp, &mp->lqh, q) { ++ if (bp->flags & MPOOL_DIRTY) ++ if (mpool_write(mp, bp) == RET_ERROR) { ++ return (RET_ERROR); ++ } else { ++ /* 4892134: Re-run through the user's pgin filter. */ ++ if (mp->pgin != NULL) ++ (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); ++ } ++ } + + /* Sync the file descriptor. */ + return (_fsync(mp->fd) ? RET_ERROR : RET_SUCCESS);