Commit e7c60ec3 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 a9d1268e
......@@ -3636,7 +3636,7 @@ static int toku_db_create(DB ** db, DB_ENV * env, u_int32_t flags) {
return r;
r = toku_env_open(env, ".", DB_PRIVATE + DB_INIT_MPOOL, 0);
if (r != 0) {
toku_env_close(env, 0);
env_unref(env);
return r;
}
assert(env_opened(env));
......@@ -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);
env_unref(env);
return ENOMEM;
return r;
}
r = toku_brt_set_bt_compare(result->i->brt, env->i->bt_compare);
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