Commit 6ae05ff2 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1683 Minor cleanup.

git-svn-id: file:///svn/toku/tokudb@11281 c7de825b-a66e-492c-adef-691d508d4ae1
parent 27efcaf6
...@@ -3636,7 +3636,7 @@ static int toku_db_create(DB ** db, DB_ENV * env, u_int32_t flags) { ...@@ -3636,7 +3636,7 @@ static int toku_db_create(DB ** db, DB_ENV * env, u_int32_t flags) {
return r; return r;
r = toku_env_open(env, ".", DB_PRIVATE + DB_INIT_MPOOL, 0); r = toku_env_open(env, ".", DB_PRIVATE + DB_INIT_MPOOL, 0);
if (r != 0) { if (r != 0) {
toku_env_close(env, 0); env_unref(env);
return r; return r;
} }
assert(env_opened(env)); assert(env_opened(env));
...@@ -3695,7 +3695,7 @@ static int toku_db_create(DB ** db, DB_ENV * env, u_int32_t flags) { ...@@ -3695,7 +3695,7 @@ static int toku_db_create(DB ** db, DB_ENV * env, u_int32_t flags) {
toku_free(result->i); toku_free(result->i);
toku_free(result); toku_free(result);
env_unref(env); env_unref(env);
return ENOMEM; return r;
} }
r = toku_brt_set_bt_compare(result->i->brt, env->i->bt_compare); r = toku_brt_set_bt_compare(result->i->brt, env->i->bt_compare);
assert(r==0); assert(r==0);
......
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