diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-07-02 13:37:14 +1000 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-07-03 13:05:35 +0400 |
commit | 051f90a534758c4da038023a8ebdb57bd414cfe3 (patch) | |
tree | a59175aae92e482d5be766c18d150c53c977cc2f /storage/maria | |
parent | 623c3f673195e143338cb657df554e397097fb42 (diff) | |
download | mariadb-git-051f90a534758c4da038023a8ebdb57bd414cfe3.tar.gz |
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
Diffstat (limited to 'storage/maria')
-rw-r--r-- | storage/maria/ma_loghandler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/maria/ma_loghandler.c b/storage/maria/ma_loghandler.c index 16cd0a09af5..fd256a48358 100644 --- a/storage/maria/ma_loghandler.c +++ b/storage/maria/ma_loghandler.c @@ -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); } } |