diff --git a/deps/uthash/uthash.h b/deps/uthash/uthash.h index 68693bf..9572e48 100644 --- a/deps/uthash/uthash.h +++ b/deps/uthash/uthash.h @@ -129,7 +129,9 @@ do { #endif /* initial number of buckets */ +#ifndef HASH_INITIAL_NUM_BUCKETS #define HASH_INITIAL_NUM_BUCKETS 32U /* initial number of buckets */ +#endif #define HASH_INITIAL_NUM_BUCKETS_LOG2 5U /* lg2 of initial number of buckets */ #define HASH_BKT_CAPACITY_THRESH 10U /* expand when bucket count reaches */ diff --git a/src/session/session_table.cpp b/src/session/session_table.cpp index 1d40421..e396996 100644 --- a/src/session/session_table.cpp +++ b/src/session/session_table.cpp @@ -1,5 +1,6 @@ #include +#define HASH_INITIAL_NUM_BUCKETS 32768U // initial number of buckets #define HASH_FUNCTION(keyptr, keylen, hashv) HASH_FUNCTION_OVERWRITE(keyptr, keylen, &hashv) #define HASH_KEYCMP(a, b, len) HASH_KEYCMP_OVERWRITE(a, b, len) #include "session_def.h"