summaryrefslogtreecommitdiff
path: root/libraries/db46/patches/patch.4.6.21.2
diff options
context:
space:
mode:
authorJohn Clizbe <John.Clizbe@gmail.com>2010-05-12 23:30:06 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:30:06 +0200
commit4f180c271a6bca58ae51d67a5d39c930b42a8dbb (patch)
treef1db19e320724285904e6d1b855fa402d27e27bb /libraries/db46/patches/patch.4.6.21.2
parent4fc75e8f9a9f2a81716505a4d4582b06f2f995d2 (diff)
downloadslackbuilds-4f180c271a6bca58ae51d67a5d39c930b42a8dbb.tar.gz
libraries/db46: Added to 12.2 repository
Diffstat (limited to 'libraries/db46/patches/patch.4.6.21.2')
-rw-r--r--libraries/db46/patches/patch.4.6.21.227
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/db46/patches/patch.4.6.21.2 b/libraries/db46/patches/patch.4.6.21.2
new file mode 100644
index 0000000000..4e59f18afe
--- /dev/null
+++ b/libraries/db46/patches/patch.4.6.21.2
@@ -0,0 +1,27 @@
+*** mp/mp_region.c 2007-05-18 03:18:01.000000000 +1000
+--- mp/mp_region.c 2008-06-24 13:15:56.000000000 +1000
+***************
+*** 249,256 ****
+ mtx_base = htab[0].mtx_hash;
+ }
+
+ if (mtx_base != MUTEX_INVALID)
+! mtx_base += reginfo_off * htab_buckets;
+
+ /* Allocate hash table space and initialize it. */
+ if ((ret = __env_alloc(infop,
+--- 249,262 ----
+ mtx_base = htab[0].mtx_hash;
+ }
+
++ /*
++ * We preallocated all of the mutexes in a block, so for regions after
++ * the first, we skip mutexes in use in earlier regions. Each region
++ * has the same number of buckets and there are two mutexes per hash
++ * bucket (the bucket mutex and the I/O mutex).
++ */
+ if (mtx_base != MUTEX_INVALID)
+! mtx_base += reginfo_off * htab_buckets * 2;
+
+ /* Allocate hash table space and initialize it. */
+ if ((ret = __env_alloc(infop,