diff options
author | Luis Soares <luis.soares@sun.com> | 2010-06-24 19:03:23 +0100 |
---|---|---|
committer | Luis Soares <luis.soares@sun.com> | 2010-06-24 19:03:23 +0100 |
commit | 16141e0c8591736197c4b74dc3f9c0e7ca85b12b (patch) | |
tree | 9a12d0d933ae2a627205d5fbc4ace43e1be6872c /win | |
parent | 72584c312d00048af4385dfa7b4cb4a69a8721bf (diff) | |
download | mariadb-git-16141e0c8591736197c4b74dc3f9c0e7ca85b12b.tar.gz |
BUG#54509: rpl_show_slave_running crashes the server sporadically
Problem: SQL and IO thread were racing for the IO_CACHE. The former to
flush it, the latter to close it. In some cases this would cause the
SQL thread to lock an invalid IO_CACHE mutex (it had been destroyed by
IO thread). This would happen when SQL thread was initializing the
master.info
Solution: We solve this by locking the log and checking if it is
hot. If it is we keep the log while seeking. Otherwise we release it
right away, because a log can get from hot to cold, but not from cold
to hot.
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions