diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2016-06-14 17:18:21 +0200 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-08-21 16:17:15 -0400 |
commit | 88a1592b0a785aff0941540a9543ef2964caaf21 (patch) | |
tree | ab1f0285c06d2f9fab04942b163eb72a9d789cfc /config.h.cmake | |
parent | a12fa57d35c00897fd883434e6573a65e6edfb41 (diff) | |
download | mariadb-git-88a1592b0a785aff0941540a9543ef2964caaf21.tar.gz |
MW-286 Avoid spurious deadlock errors when wsrep_on is disabled
If a conflict happens under wsrep_on, the THD's wsrep_conflict_state
is typically set to MUST_ABORT and cleared later, when transaction is
aborted. However, when wsrep_on is disabled, no check is performed to
see whether wsrep_conflict_state is set. So this potentially creates
spurious deadlock errors on the subsequent statement that runs with
wsrep_on enabled.
To avoid this problem wsrep_thd_set_conflict_state() sets the conflict
state only if wsrep_on is enabled.
Diffstat (limited to 'config.h.cmake')
0 files changed, 0 insertions, 0 deletions