Commit c58c4949 authored by Zardosht Kasheff's avatar Zardosht Kasheff

refs #255, have the fsync_log minicron shutdown before we close the logger in env_close

parent f51c7180
...@@ -1160,6 +1160,7 @@ env_close(DB_ENV * env, uint32_t flags) { ...@@ -1160,6 +1160,7 @@ env_close(DB_ENV * env, uint32_t flags) {
goto panic_and_quit_early; goto panic_and_quit_early;
} }
} }
env_fsync_log_cron_destroy(env);
if (env->i->cachetable) { if (env->i->cachetable) {
toku_cachetable_minicron_shutdown(env->i->cachetable); toku_cachetable_minicron_shutdown(env->i->cachetable);
if (env->i->logger) { if (env->i->logger) {
...@@ -1200,7 +1201,6 @@ env_close(DB_ENV * env, uint32_t flags) { ...@@ -1200,7 +1201,6 @@ env_close(DB_ENV * env, uint32_t flags) {
} }
env_fs_destroy(env); env_fs_destroy(env);
env_fsync_log_cron_destroy(env);
env->i->ltm.destroy(); env->i->ltm.destroy();
if (env->i->data_dir) if (env->i->data_dir)
toku_free(env->i->data_dir); toku_free(env->i->data_dir);
......
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