Commit cfcf5458 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1339

Clean up properly on a logger that was not fully opened

git-svn-id: file:///svn/toku/tokudb.1032b@8406 c7de825b-a66e-492c-adef-691d508d4ae1
parent f4d70834
...@@ -339,9 +339,9 @@ int toku_logger_close(TOKULOGGER *loggerp) { ...@@ -339,9 +339,9 @@ int toku_logger_close(TOKULOGGER *loggerp) {
logger->fd=-1; logger->fd=-1;
r = ml_unlock(&logger->output_lock); if (r!=0) goto panic; r = ml_unlock(&logger->output_lock); if (r!=0) goto panic;
is_closed:
r = ml_destroy(&logger->output_lock); if (r!=0) goto panic; r = ml_destroy(&logger->output_lock); if (r!=0) goto panic;
r = ml_destroy(&logger->input_lock); if (r!=0) goto panic; r = ml_destroy(&logger->input_lock); if (r!=0) goto panic;
is_closed:
logger->is_panicked=1; // Just in case this might help. logger->is_panicked=1; // Just in case this might help.
if (logger->directory) toku_free(logger->directory); if (logger->directory) toku_free(logger->directory);
toku_free(logger); toku_free(logger);
......
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