mdbx-tools: cleanup MDBX_NOSUBDIR (needless).

This commit is contained in:
Leonid Yuriev 2021-05-27 11:04:50 +03:00
parent a7167ce715
commit 8915db5f83
4 changed files with 2 additions and 6 deletions

View File

@ -1114,7 +1114,6 @@ int main(int argc, char *argv[]) {
quiet = true;
break;
case 'n':
envflags |= MDBX_NOSUBDIR;
break;
case 'w':
envflags &= ~MDBX_RDONLY;

View File

@ -109,7 +109,6 @@ int main(int argc, char *argv[]) {
delete = true;
break;
case 'n':
envflags |= MDBX_NOSUBDIR;
break;
case 's':
subname = optarg;

View File

@ -296,7 +296,6 @@ int main(int argc, char *argv[]) {
}
break;
case 'n':
envflags |= MDBX_NOSUBDIR;
break;
case 'p':
mode |= PRINT;

View File

@ -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;