summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-10-13 10:38:41 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-10-13 10:38:41 +0300
commit2bb8d7c2f36439ab6a3944476665eb1218c36f5c (patch)
tree28859c0b15306e2e4c71851772aeeaf87eae012c /mysql-test/suite/galera
parent6f32b28be511e96d9265ce727aa4a38810b41f96 (diff)
downloadmariadb-git-2bb8d7c2f36439ab6a3944476665eb1218c36f5c.tar.gz
MDEV-26811: Assertion "log_sys->n_pending_flushes == 1" fails
In commit 1cb218c37cc3fe01a1ff2fe9b1cbfb591e90d5ce (MDEV-26450) we introduced the function log_write_and_flush(), which may compete with log_checkpoint() invoking log_write_flush_to_disk_low() from another thread. The assertion n_pending_flushes==1 is too strict. There is no possibility of a race condition here, because fil_flush() is protected by fil_system->mutex and the rest will be protected by log_sys->mutex. log_write_flush_to_disk_low(), log_write_and_flush(): Relax the assertions to test for a nonzero count.
Diffstat (limited to 'mysql-test/suite/galera')
0 files changed, 0 insertions, 0 deletions