Skip to content
/ server Public

Commit 051f90a

Browse files
grooverdansvoj
authored andcommitted
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
1 parent 623c3f6 commit 051f90a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/maria/ma_loghandler.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ static my_bool translog_set_lsn_for_files(uint32 from_file, uint32 to_file,
12691269
mysql_file_close(fd, MYF(MY_WME))))
12701270
{
12711271
translog_stop_writing();
1272+
mysql_mutex_unlock(&log_descriptor.file_header_lock);
12721273
DBUG_RETURN(1);
12731274
}
12741275
}

0 commit comments

Comments
 (0)