Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06623df

Browse files
committed
Allow a few seconds for Windows to catch up with a directory rename when checking pg_upgrade.
1 parent93b6d78 commit06623df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/tools/msvc/vcregress.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ sub upgradecheck
242242
# Much of this comes from the pg_upgrade test.sh script,
243243
# but it only covers the --install case, and not the case
244244
# where the old and new source or bin dirs are different.
245-
# i.e. onlythethis version to this version check. That's
245+
# i.e. only this version to this version check. That's
246246
# what pg_upgrade's "make check" does.
247247

248248
$ENV{PGPORT} ||= 50432;
@@ -273,6 +273,9 @@ sub upgradecheck
273273
print"\nStopping old cluster\n\n";
274274
system("pg_ctl -m fast stop") == 0orexit 1;
275275
rename$data,"$data.old";
276+
# take a breather in case Windows hasn't quite got
277+
# the message about the directory moving
278+
sleep(5);
276279
print"\nSetting up new cluster\n\n";
277280
system("initdb") == 0orexit 1;
278281
print"\nRunning pg_upgrade\n\n";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp