diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2010-10-09 13:54:56 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2010-10-09 13:54:56 +0000 |
commit | f08cbd6639ff8218229c53284ea042da83622531 (patch) | |
tree | f4f8768c28e9187f913acf2134c0317979b8d352 /databases/db44/files/patch-upstream.4.4.20.4 | |
parent | a2388ee3d6d7742ddb5166fd3d0ea3fd356ed9c6 (diff) | |
download | ports-f08cbd6639ff8218229c53284ea042da83622531.tar.gz ports-f08cbd6639ff8218229c53284ea042da83622531.zip |
Move vendor patches into files/.
Fix WITH_DEBUG build, reported by Edward Sanford.
Notes
Notes:
svn path=/head/; revision=262683
Diffstat (limited to 'databases/db44/files/patch-upstream.4.4.20.4')
-rw-r--r-- | databases/db44/files/patch-upstream.4.4.20.4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/db44/files/patch-upstream.4.4.20.4 b/databases/db44/files/patch-upstream.4.4.20.4 new file mode 100644 index 000000000000..d6ee29d12d6a --- /dev/null +++ b/databases/db44/files/patch-upstream.4.4.20.4 @@ -0,0 +1,24 @@ +*** ../mp/mp_fget.c.orig 2005-10-12 10:53:36.000000000 -0700 +--- ../mp/mp_fget.c 2006-05-30 20:48:10.000000000 -0700 +*************** +*** 587,594 **** + */ + if (state != SECOND_MISS && bhp->ref == 1) { + bhp->priority = UINT32_MAX; +! SH_TAILQ_REMOVE(&hp->hash_bucket, bhp, hq, __bh); +! SH_TAILQ_INSERT_TAIL(&hp->hash_bucket, bhp, hq); + hp->hash_priority = + SH_TAILQ_FIRSTP(&hp->hash_bucket, __bh)->priority; + } +--- 587,597 ---- + */ + if (state != SECOND_MISS && bhp->ref == 1) { + bhp->priority = UINT32_MAX; +! if (SH_TAILQ_FIRST(&hp->hash_bucket, __bh) != +! SH_TAILQ_LAST(&hp->hash_bucket, hq, __bh)) { +! SH_TAILQ_REMOVE(&hp->hash_bucket, bhp, hq, __bh); +! SH_TAILQ_INSERT_TAIL(&hp->hash_bucket, bhp, hq); +! } + hp->hash_priority = + SH_TAILQ_FIRSTP(&hp->hash_bucket, __bh)->priority; + } |