Skip to content
Permalink
Browse files
ma_loghandler: release file_header_lock on error
translog_stop_writing doesn't release a lock (though
does to a DBUG_ASSERT).

Better to just release the lock.

Found by Coverity id 972092
  • Loading branch information
grooverdan authored and Sergey Vojtovich committed Jul 3, 2017
1 parent 623c3f6 commit 051f90a
Showing 1 changed file with 1 addition and 0 deletions.
@@ -1269,6 +1269,7 @@ static my_bool translog_set_lsn_for_files(uint32 from_file, uint32 to_file,
mysql_file_close(fd, MYF(MY_WME))))
{
translog_stop_writing();
mysql_mutex_unlock(&log_descriptor.file_header_lock);
DBUG_RETURN(1);
}
}

0 comments on commit 051f90a

Please sign in to comment.