Commit bd81d2a9 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Fix {{{toku_logger_fsync}}}. Fixes #529.

git-svn-id: file:///svn/tokudb@2797 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1f2c6af3
......@@ -316,7 +316,8 @@ int toku_logger_fsync (TOKULOGGER logger) {
r = ml_lock(&logger->output_lock); if (r!=0) goto panic;
r = ml_lock(&logger->input_lock); if (r!=0) goto panic;
r = do_write(logger, 1);
r = ml_unlock(&logger->output_lock); if (r!=0) goto panic;
r = ml_unlock(&logger->output_lock); if (r!=0) goto panic;
return 0;
panic:
toku_logger_panic(logger, r);
return r;
......
......@@ -61,7 +61,7 @@ int main (int argc, char *argv[]) {
r=env->log_flush(env, 0); CKERR(r);
r=grep_for_in_logs(hello);
assert(r>=0);
r=tid->commit(tid, 0); assert(r==0);
r=tid->commit(tid, 0); CKERR(r);
}
r=db->close(db, 0); assert(r==0);
r=env->close(env, 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