diff options
author | unknown <mats@a88-113-38-195.elisa-laajakaista.fi> | 2007-08-08 16:28:00 +0300 |
---|---|---|
committer | unknown <mats@a88-113-38-195.elisa-laajakaista.fi> | 2007-08-08 16:28:00 +0300 |
commit | 6c9e77ae3ad48ededd3e51728fd7182ae0e99350 (patch) | |
tree | e9ad062b95dc3bc36b81cac241e9be1fe8f54674 /mysys/thr_lock.c | |
parent | ca0a8a392322b4174eb9cb8ad7e7094ee7e858a0 (diff) | |
download | mariadb-git-6c9e77ae3ad48ededd3e51728fd7182ae0e99350.tar.gz |
BUG#30274 (Debug server crashes because mutex isn't initialized):
Completion patch, since it is possible that Log_event::write_header()
is called with no current thread.
When starting the server, there is no thread available, but
MYSQL_BIN_LOG::open() is called to initialize the binary log. The
function writes a format description log event to the binary log,
which means that Log_event::write_header() can be called with no
current thread object available.
sql/log_event.cc:
Since Log_event::write_header() can be called from inside
init_server_components(), it is possible that thd is NULL. In this
case, we set the time of the event to the current time instead
of the start time of the query.
Diffstat (limited to 'mysys/thr_lock.c')
0 files changed, 0 insertions, 0 deletions