mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Wait for checksum state transition in test
The test for disabling data checksums after a failure didn't wait for the state transition to complete before testing, which could lead to false negatives in testing. Fix by passing the wait param when disabling. Identified on buildfarm member culicidae. Author: Daniel Gustafsson <daniel@yesql.se> Reported-by: Alexander Lakhin <exclusion@gmail.com> Reviewed-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/b2f34fd3-8e98-450e-9e8c-ac08238e9116@gmail.com Backpatch-through: 19
This commit is contained in:
@@ -48,7 +48,7 @@ $node->safe_psql('postgres',
|
||||
"SELECT injection_points_detach('datachecksumsworker-fail-db-result');");
|
||||
|
||||
# Make sure that disabling after a failure works
|
||||
disable_data_checksums($node);
|
||||
disable_data_checksums($node, wait => 1);
|
||||
test_checksum_state($node, 'off');
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user