diff options
author | Alfranio Correia <alfranio.correia@oracle.com> | 2010-09-06 18:18:44 +0100 |
---|---|---|
committer | Alfranio Correia <alfranio.correia@oracle.com> | 2010-09-06 18:18:44 +0100 |
commit | eab1def49ad1785ad65c9388de3704a5d658a0f6 (patch) | |
tree | 5a565d2cb4494feb616399f54d66ff3fdcb1e74a /sql/log.h | |
parent | 744c1013a2b429557fec07246e812fcc40ec00a8 (diff) | |
parent | e297990d5b17cf888f6ac6d0c069551c317a53ef (diff) | |
download | mariadb-git-eab1def49ad1785ad65c9388de3704a5d658a0f6.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.h | 1 |
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);} |