Skip to content

Commit

Permalink
Open file for indentification with read-write so it can be created if…
Browse files Browse the repository at this point in the history
… necessary and still identified, #153
  • Loading branch information
kriszyp committed Jun 4, 2022
1 parent cb9e4fa commit ba567de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies/lmdb/libraries/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5872,7 +5872,7 @@ mdb_env_setup_locks(MDB_env *env, MDB_name *fname, int mode, int *excl)
int rc;
MDB_OFF_T size, rsize;
if (env->me_check_fd) {
rc = mdb_fopen(env, fname, MDB_O_RDONLY, mode, &env->me_lfd);
rc = mdb_fopen(env, fname, MDB_O_RDWR, mode, &env->me_lfd);
if (!rc) {
rc = ((MDB_check_fd*) env->me_check_fd)(env->me_lfd, env);
if (rc)
Expand Down

0 comments on commit ba567de

Please sign in to comment.