From 2532e0e63d758cb38d5a3dd3268d53461bd06e47 Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 15 Feb 1999 21:17:48 +0000 Subject: [PATCH] Update HASHKEY macro from db 1.8.6. I didn't update that initially as I thought it related to the new hash code--it does not --- src/include/mpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/mpool.h b/src/include/mpool.h index 79c96628..49055b77 100644 --- a/src/include/mpool.h +++ b/src/include/mpool.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpool.h,v 1.5 1999/02/15 21:13:07 millert Exp $ */ +/* $OpenBSD: mpool.h,v 1.6 1999/02/15 21:17:48 millert Exp $ */ /* $NetBSD: mpool.h,v 1.7 1996/05/03 21:13:41 cgd Exp $ */ /*- @@ -49,7 +49,7 @@ * pool is handed an opaque MPOOL cookie which stores all of this information. */ #define HASHSIZE 128 -#define HASHKEY(pgno) ((pgno - 1) % HASHSIZE) +#define HASHKEY(pgno) ((pgno - 1 + HASHSIZE) % HASHSIZE) /* The BKT structures are the elements of the queues. */ typedef struct _bkt {