]> git.pld-linux.org Git - packages/db.git/commitdiff
- save from http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52... master
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 19 Aug 2008 12:29:27 +0000 (12:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    patch.4.2.52.5 -> 1.1

patch.4.2.52.5 [new file with mode: 0644]

diff --git a/patch.4.2.52.5 b/patch.4.2.52.5
new file mode 100644 (file)
index 0000000..4a10097
--- /dev/null
@@ -0,0 +1,24 @@
+*** mp/mp_fget.c.orig  2003-09-25 08:29:02.000000000 -0700
+--- mp/mp_fget.c       2006-05-26 14:58:02.246963204 -0700
+***************
+*** 553,560 ****
+        */
+       if (state != SECOND_MISS && bhp->ref == 1) {
+               bhp->priority = UINT32_T_MAX;
+!              SH_TAILQ_REMOVE(&hp->hash_bucket, bhp, hq, __bh);
+!              SH_TAILQ_INSERT_TAIL(&hp->hash_bucket, bhp, hq);
+               hp->hash_priority =
+                   SH_TAILQ_FIRST(&hp->hash_bucket, __bh)->priority;
+       }
+--- 553,563 ----
+        */
+       if (state != SECOND_MISS && bhp->ref == 1) {
+               bhp->priority = UINT32_T_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_FIRST(&hp->hash_bucket, __bh)->priority;
+       }
This page took 0.054536 seconds and 4 git commands to generate.