Commit c63e18f4 authored by unknown's avatar unknown

Fixed bug of non-unlocked rw-lock in case of

absence of opened files.

parent b8c56780
...@@ -900,6 +900,7 @@ static TRANSLOG_FILE *get_logfile_by_number(uint32 file_no) ...@@ -900,6 +900,7 @@ static TRANSLOG_FILE *get_logfile_by_number(uint32 file_no)
log_descriptor.open_files.elements) log_descriptor.open_files.elements)
{ {
DBUG_PRINT("info", ("File #%u is not opened", file_no)); DBUG_PRINT("info", ("File #%u is not opened", file_no));
rw_unlock(&log_descriptor.open_files_lock);
DBUG_RETURN(NULL); DBUG_RETURN(NULL);
} }
DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 == DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 ==
......
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