Skip to content

Commit

Permalink
Fix set of valid env flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jan 25, 2025
1 parent 22bf368 commit 090847b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dependencies/lmdb/libraries/liblmdb/lmdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ typedef void (MDB_sum_func)(const MDB_val *src, MDB_val *dst, const MDB_val *key
#define MDB_SAFE_RESTORE 0x800
/** Track metrics for this env */
#define MDB_TRACK_METRICS 0x400
/** Use the newest free space first */
#define MDB_USE_NEW_FREESPACE 0x200
/** Use the overlapping sync strategy */
#define MDB_OVERLAPPINGSYNC_SYNC = 0x02
Expand Down
2 changes: 1 addition & 1 deletion dependencies/lmdb/libraries/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6720,7 +6720,7 @@ mdb_env_envflags(MDB_env *env)
*/
#define CHANGEABLE (MDB_NOSYNC|MDB_NOMETASYNC|MDB_MAPASYNC|MDB_NOMEMINIT)
#define CHANGELESS (MDB_FIXEDMAP|MDB_NOSUBDIR|MDB_RDONLY| \
MDB_WRITEMAP|MDB_NOTLS|MDB_NOLOCK|MDB_NORDAHEAD|MDB_PREVSNAPSHOT|MDB_REMAP_CHUNKS|MDB_OVERLAPPINGSYNC|MDB_SAFE_RESTORE|MDB_TRACK_METRICS)
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)
#define EXPOSED (CHANGEABLE|CHANGELESS | MDB_ENCRYPT)

#if VALID_FLAGS & PERSISTENT_FLAGS & EXPOSED
Expand Down

0 comments on commit 090847b

Please sign in to comment.