mdbx-chk: report switching to non-exclusive/accede mode.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2025-07-29 12:25:19 +03:00
parent 457564c498
commit 0cc52a3cc3

View File

@ -604,8 +604,10 @@ int main(int argc, char *argv[]) {
rc == EBUSY || rc == EAGAIN rc == EBUSY || rc == EAGAIN
#endif #endif
)) { )) {
const size_t cookie = print(MDBX_chk_resolution, "Try open in non-exclusive mode...");
env_flags &= ~MDBX_EXCLUSIVE; env_flags &= ~MDBX_EXCLUSIVE;
rc = mdbx_env_open(env, envname, env_flags | MDBX_ACCEDE, 0); rc = mdbx_env_open(env, envname, env_flags | MDBX_ACCEDE, 0);
suffix(cookie, rc ? "failed" : "done");
} }
} }