postgresql/src/bin/pg_rewind
Tom Lane a7bcf391f3 Remove useless lstat() call in pg_rewind.
This is duplicative of an lstat that was just done by the calling
function (traverse_datadir), besides which we weren't really doing
anything with the results.  There's not much point in checking to
see if someone removed the file since the previous lstat, since the
FILE_ACTION_REMOVE code would have to deal with missing-file cases
anyway.  Moreover, the "exists = false" assignment was a dead store;
nothing was done with that value later.

A syscall saved is a syscall earned, so back-patch to 9.5
where this code was introduced.

Discussion: https://postgr.es/m/1221796.1599329320@sss.pgh.pa.us
2020-09-06 11:50:41 -04:00
..
po Translation updates 2020-08-10 15:21:18 +02:00
t Tighten up Windows CRLF conversion in our TAP test scripts. 2020-07-09 17:38:52 -04:00
.gitignore Improve logging of TAP tests. 2015-07-09 13:19:10 +03:00
copy_fetch.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
datapagemap.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
datapagemap.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
fetch.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
fetch.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
file_ops.c Remove pg_rewind's private logging.h/logging.c files. 2019-05-14 13:11:23 -04:00
file_ops.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
filemap.c Remove useless lstat() call in pg_rewind. 2020-09-06 11:50:41 -04:00
filemap.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
libpq_fetch.c Fix handling of missing files when using pg_rewind with online source 2020-07-15 15:17:36 +09:00
Makefile Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
nls.mk Translation updates 2020-05-11 13:19:18 +02:00
parsexlog.c Print WAL position correctly in pg_rewind error message. 2019-07-30 21:14:34 +03:00
pg_rewind.c Avoid non-constant format string argument to fprintf(). 2020-08-18 13:13:28 +03:00
pg_rewind.h Fix printing last progress report line in client programs. 2020-08-17 09:33:10 +03:00
timeline.c Remove pg_rewind's private logging.h/logging.c files. 2019-05-14 13:11:23 -04:00