summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@oracle.com>2010-09-06 18:18:44 +0100
committerAlfranio Correia <alfranio.correia@oracle.com>2010-09-06 18:18:44 +0100
commit95116114a4afc0561fc9fdc278e2d6ca4a1c6767 (patch)
tree5a565d2cb4494feb616399f54d66ff3fdcb1e74a /sql/log.h
parent08e1a5b770e099430e046d3dcd5f8d5fe4f1a279 (diff)
parent63c026c4e88b98af51408c21ccd7430243bd3801 (diff)
downloadmariadb-git-95116114a4afc0561fc9fdc278e2d6ca4a1c6767.tar.gz
BUG#55415 wait_for_update_bin_log enters a condition but does not leave
In sql/log.c, member function wait_for_update_bin_log, a condition is entered with THD::enter_cond but is not exited. This might leave dangling references to the mutex/condition in the per-thread information area. To fix the problem, we call exit_cond to properly remove references to the mutex, LOCK_log.
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/log.h b/sql/log.h
index ebb23deda81..5df05e7ff90 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -460,6 +460,7 @@ public:
inline char* get_log_fname() { return log_file_name; }
inline char* get_name() { return name; }
inline mysql_mutex_t* get_log_lock() { return &LOCK_log; }
+ inline mysql_cond_t* get_log_cond() { return &update_cond; }
inline IO_CACHE* get_log_file() { return &log_file; }
inline void lock_index() { mysql_mutex_lock(&LOCK_index);}