Skip to content

Commit 3e6c7b1

Browse files
Vitaly DavydovCommitfest Bot
Vitaly Davydov
authored and
Commitfest Bot
committed
Fix src/recovery/t/001_stream_rep.pl
1 parent 183f0b0 commit 3e6c7b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/recovery/t/001_stream_rep.pl

+3
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ sub replay_check
580580
ok( ($phys_restart_lsn_pre cmp $phys_restart_lsn_post) == 0,
581581
"physical slot advance persists across restarts");
582582

583+
# Cleanup unused WAL segments
584+
$node_primary->safe_psql('postgres', "CHECKPOINT;");
585+
583586
# Check if the previous segment gets correctly recycled after the
584587
# server stopped cleanly, causing a shutdown checkpoint to be generated.
585588
my $primary_data = $node_primary->data_dir;

0 commit comments

Comments
 (0)