summaryrefslogtreecommitdiff
path: root/storage/maria/ma_loghandler.c
diff options
context:
space:
mode:
authorunknown <bell@desktop.sanja.is.com.ua>2008-03-24 01:38:57 +0200
committerunknown <bell@desktop.sanja.is.com.ua>2008-03-24 01:38:57 +0200
commitc63e18f43c1054db92c798e54ba9520fc16ea607 (patch)
treee660f05a77fc8c6f395991a77a5f287d6002342d /storage/maria/ma_loghandler.c
parentb8c56780b601563735f4d6880573cfa6cb96bf2c (diff)
downloadmariadb-git-c63e18f43c1054db92c798e54ba9520fc16ea607.tar.gz
Fixed bug of non-unlocked rw-lock in case of
absence of opened files.
Diffstat (limited to 'storage/maria/ma_loghandler.c')
-rw-r--r--storage/maria/ma_loghandler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/maria/ma_loghandler.c b/storage/maria/ma_loghandler.c
index c4f7fa75da5..fb5e7749844 100644
--- a/storage/maria/ma_loghandler.c
+++ b/storage/maria/ma_loghandler.c
@@ -900,6 +900,7 @@ static TRANSLOG_FILE *get_logfile_by_number(uint32 file_no)
log_descriptor.open_files.elements)
{
DBUG_PRINT("info", ("File #%u is not opened", file_no));
+ rw_unlock(&log_descriptor.open_files_lock);
DBUG_RETURN(NULL);
}
DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 ==