git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 57e1c00) | patch
Fix RecursiveCopy.pm to cope with disappearing files.
2017年9月12日 02:02:58 +0000 (22:02 -0400)
2017年9月12日 02:02:58 +0000 (22:02 -0400)
commit e183530550dc1b73d24fb5ae7d84e85286e88ffb
Fix RecursiveCopy.pm to cope with disappearing files.

When copying from an active database tree, it's possible for files to be
deleted after we see them in a readdir() scan but before we can open them.
(Once we've got a file open, we don't expect any further errors from it
getting unlinked, though.) Tweak RecursiveCopy so it can cope with this
case, so as to avoid irreproducible test failures.

Back-patch to 9.6 where this code was added. In v10 and HEAD, also
remove unused "use RecursiveCopy" in one recovery test script.

Michael Paquier and Tom Lane

Discussion: https://postgr.es/m/24621.1504924323@sss.pgh.pa.us
src/test/perl/RecursiveCopy.pm diff | blob | blame | history
src/test/recovery/t/010_logical_decoding_timelines.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /