diff options
author | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-11-12 13:04:39 +0530 |
---|---|---|
committer | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-11-12 13:04:39 +0530 |
commit | 984a06db2ce2b2e3c7c5028245905417f2141cd7 (patch) | |
tree | ebaa78908f2b70726492b9ac1a69c5496867d308 /sql/sql_union.cc | |
parent | dd33a70dad2b32aa6fcdbd1f8161d5351f6dbebd (diff) | |
download | mariadb-git-984a06db2ce2b2e3c7c5028245905417f2141cd7.tar.gz |
MDEV-4633: multi_source.simple test fails sporadically
Analysis:
========
Writes to 'rli->log_space_total' needs to be synchronized, otherwise both
SQL_THREAD and IO_THREAD can try to modify the variable simultaneously
resulting in incorrect rli->log_space_total. In the current test scenario
SQL_THREAD is trying to decrement 'rli->log_space_total' in 'purge_first_log'
and IO_THREAD is trying to increment the 'rli->log_space_total' in
'queue_event' simultaneously. Hence test occasionally fails with result
mismatch.
Fix:
===
Convert 'rli->log_space_total' variable to atomic type.
Diffstat (limited to 'sql/sql_union.cc')
0 files changed, 0 insertions, 0 deletions