diff --git a/src/mdbx_chk.c b/src/mdbx_chk.c index d3d91f97..08c6561d 100644 --- a/src/mdbx_chk.c +++ b/src/mdbx_chk.c @@ -1114,7 +1114,6 @@ int main(int argc, char *argv[]) { quiet = true; break; case 'n': - envflags |= MDBX_NOSUBDIR; break; case 'w': envflags &= ~MDBX_RDONLY; diff --git a/src/mdbx_drop.c b/src/mdbx_drop.c index 55fa6941..aaa61d7a 100644 --- a/src/mdbx_drop.c +++ b/src/mdbx_drop.c @@ -109,7 +109,6 @@ int main(int argc, char *argv[]) { delete = true; break; case 'n': - envflags |= MDBX_NOSUBDIR; break; case 's': subname = optarg; diff --git a/src/mdbx_dump.c b/src/mdbx_dump.c index 43ba1065..27d3f4b3 100644 --- a/src/mdbx_dump.c +++ b/src/mdbx_dump.c @@ -296,7 +296,6 @@ int main(int argc, char *argv[]) { } break; case 'n': - envflags |= MDBX_NOSUBDIR; break; case 'p': mode |= PRINT; diff --git a/src/mdbx_stat.c b/src/mdbx_stat.c index 835640b7..f2fbc826 100644 --- a/src/mdbx_stat.c +++ b/src/mdbx_stat.c @@ -106,7 +106,7 @@ int main(int argc, char *argv[]) { prog = argv[0]; char *envname; char *subname = nullptr; - bool alldbs = false, envinfo = false, envflags = false, pgop = false; + bool alldbs = false, envinfo = false, pgop = false; int freinfo = 0, rdrinfo = 0; if (argc < 2) @@ -155,7 +155,6 @@ int main(int argc, char *argv[]) { freinfo += 1; break; case 'n': - envflags |= MDBX_NOSUBDIR; break; case 'r': rdrinfo += 1; @@ -209,7 +208,7 @@ int main(int argc, char *argv[]) { } } - rc = mdbx_env_open(env, envname, envflags | MDBX_RDONLY, 0); + rc = mdbx_env_open(env, envname, MDBX_RDONLY, 0); if (unlikely(rc != MDBX_SUCCESS)) { error("mdbx_env_open", rc); goto env_close;