Skip to content

Commit

Permalink
ITS#10137 LMDB: Allow users to define MDB_IDL_LOGN
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops authored and hyc committed Nov 27, 2023
1 parent c07884d commit 30288c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/liblmdb/midl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ typedef MDB_ID *MDB_IDL;
/* IDL sizes - likely should be even bigger
* limiting factors: sizeof(ID), thread stack size
*/
#ifndef MDB_IDL_LOGN
#define MDB_IDL_LOGN 16 /* DB_SIZE is 2^16, UM_SIZE is 2^17 */
#endif
#define MDB_IDL_DB_SIZE (1<<MDB_IDL_LOGN)
#define MDB_IDL_UM_SIZE (1<<(MDB_IDL_LOGN+1))

Expand Down

0 comments on commit 30288c7

Please sign in to comment.