diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-15 21:17:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-15 21:17:49 +0000 |
commit | 1bb8ac7c51454e52f47df1ea7d8de7073fdbe189 (patch) | |
tree | 2361d8d9cc2cf55e3728c80ca0add0b2f5c31b5d | |
parent | 5a8ed1de6c48f1121cf92cda315d755088371cb4 (diff) |
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
-rw-r--r-- | include/mpool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mpool.h b/include/mpool.h index 79c96628c4e..49055b77f35 100644 --- a/include/mpool.h +++ b/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 { |