lmdb: Hide internal flags in mdb_env_get_flags().

Change-Id: I9ff2888a61a53fb0c7471de980ec7b97c59c6096
This commit is contained in:
Hallvard Furuseth 2015-07-04 13:42:41 +02:00 committed by Leo Yuriev
parent 295beda00c
commit 84b6ecb9a8

2
mdb.c
View File

@ -8967,7 +8967,7 @@ mdb_env_get_flags(MDB_env *env, unsigned *arg)
if (!env || !arg)
return EINVAL;
*arg = env->me_flags;
*arg = env->me_flags & (CHANGEABLE|CHANGELESS);
return MDB_SUCCESS;
}