Commit cf2ad36a authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:3028] Minor, clear most_recent_env in toku_env_open() after verifying that...

[t:3028] Minor, clear most_recent_env in toku_env_open() after verifying that env is not already open.

git-svn-id: file:///svn/toku/tokudb@27535 c7de825b-a66e-492c-adef-691d508d4ae1
parent c0550da1
......@@ -756,13 +756,13 @@ toku_env_open(DB_ENV * env, const char *home, u_int32_t flags, int mode) {
BOOL newenv; // true iff creating a new environment
u_int32_t unused_flags=flags;
most_recent_env = NULL;
if (env_opened(env)) {
r = toku_ydb_do_error(env, EINVAL, "The environment is already open\n");
goto cleanup;
}
most_recent_env = NULL;
assert(sizeof(time_t) == sizeof(uint64_t));
HANDLE_EXTRA_FLAGS(env, flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment