mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
MDEV-35813: Valgrind test fixup
log_checkpoint(): In cmake -DWITH_VALGRIND=ON builds, let us wait for all outstanding writes to complete, in order to avoid an unexpectedly large number of innodb_log_writes in the test innodb.page_cleaner.
This commit is contained in:
parent
191209d8ab
commit
1b9d5cdb83
1 changed files with 8 additions and 0 deletions
|
|
@ -1879,6 +1879,14 @@ static bool log_checkpoint() noexcept
|
|||
if (recv_recovery_is_on())
|
||||
recv_sys.apply(true);
|
||||
|
||||
#if defined HAVE_valgrind && !__has_feature(memory_sanitizer)
|
||||
/* The built-in scheduler in Valgrind may neglect some threads for a
|
||||
long time. Under Valgrind, let us explicitly wait for page write
|
||||
completion in order to avoid a result difference in the test
|
||||
innodb.page_cleaner. */
|
||||
os_aio_wait_until_no_pending_writes(false);
|
||||
#endif
|
||||
|
||||
switch (srv_file_flush_method) {
|
||||
case SRV_NOSYNC:
|
||||
case SRV_O_DIRECT_NO_FSYNC:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue