diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-06 11:50:41 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-06 11:50:41 -0400 |
commit | a7bcf391f329561307a3d936443a715ad74a2e9d (patch) | |
tree | 7e2ad2efa64cecd6a38b682a92c0d3b9c35f7d04 /src/backend/executor/execPartition.c | |
parent | fc37c6f6105a594467eb8922eb6d47e0d156ab21 (diff) | |
download | postgresql-a7bcf391f329561307a3d936443a715ad74a2e9d.tar.gz postgresql-a7bcf391f329561307a3d936443a715ad74a2e9d.zip |
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
Diffstat (limited to 'src/backend/executor/execPartition.c')
0 files changed, 0 insertions, 0 deletions