Skip to content

Commit 090847b

Browse files
committed
Fix set of valid env flags
1 parent 22bf368 commit 090847b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dependencies/lmdb/libraries/liblmdb/lmdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ typedef void (MDB_sum_func)(const MDB_val *src, MDB_val *dst, const MDB_val *key
378378
#define MDB_SAFE_RESTORE 0x800
379379
/** Track metrics for this env */
380380
#define MDB_TRACK_METRICS 0x400
381+
/** Use the newest free space first */
381382
#define MDB_USE_NEW_FREESPACE 0x200
382383
/** Use the overlapping sync strategy */
383384
#define MDB_OVERLAPPINGSYNC_SYNC = 0x02

dependencies/lmdb/libraries/liblmdb/mdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6720,7 +6720,7 @@ mdb_env_envflags(MDB_env *env)
67206720
*/
67216721
#define CHANGEABLE (MDB_NOSYNC|MDB_NOMETASYNC|MDB_MAPASYNC|MDB_NOMEMINIT)
67226722
#define CHANGELESS (MDB_FIXEDMAP|MDB_NOSUBDIR|MDB_RDONLY| \
6723-
MDB_WRITEMAP|MDB_NOTLS|MDB_NOLOCK|MDB_NORDAHEAD|MDB_PREVSNAPSHOT|MDB_REMAP_CHUNKS|MDB_OVERLAPPINGSYNC|MDB_SAFE_RESTORE|MDB_TRACK_METRICS)
6723+
MDB_WRITEMAP|MDB_NOTLS|MDB_NOLOCK|MDB_NORDAHEAD|MDB_PREVSNAPSHOT|MDB_REMAP_CHUNKS|MDB_OVERLAPPINGSYNC|MDB_SAFE_RESTORE|MDB_TRACK_METRICS|MDB_USE_NEW_FREESPACE)
67246724
#define EXPOSED (CHANGEABLE|CHANGELESS | MDB_ENCRYPT)
67256725

67266726
#if VALID_FLAGS & PERSISTENT_FLAGS & EXPOSED

0 commit comments

Comments
 (0)