@@ -572,14 +572,18 @@ toku_logger_make_space_in_inbuf (TOKULOGGER logger, int n_bytes_needed)
release_output(logger,fsynced_lsn);
}
voidtoku_logger_fsync(TOKULOGGERlogger)
voidtoku_logger_fsync(TOKULOGGERlogger)
// Effect: This is the exported fsync used by ydb.c for env_log_flush. Group commit doesn't have to work.
// Entry: Holds no locks
// Exit: Holds no locks
// Implementation note: Acquire the output condition lock, then the output permission, then release the output condition lock, then get the input lock.
// Then release everything.
// Then release everything. Hold the input lock while reading the current max lsn in buf to make drd happy that there is no data race.