Browse Source

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

OPENBSD_2_5
millert 26 years ago
parent
commit
2532e0e63d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/include/mpool.h

+ 2
- 2
src/include/mpool.h View File

@ -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 $ */ /* $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. * pool is handed an opaque MPOOL cookie which stores all of this information.
*/ */
#define HASHSIZE 128 #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. */ /* The BKT structures are the elements of the queues. */
typedef struct _bkt { typedef struct _bkt {


Loading…
Cancel
Save