aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-06 11:50:40 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-06 11:50:40 -0400
commite7f06ea60a3c07128176b294ce3fb0555edd15a5 (patch)
treecec4cec70cda2c9364341ebe3ef58223c5c695d5 /src/backend/executor/execParallel.c
parent8df601bd4067ecdf373ebe43bdf03159a12e2e9d (diff)
downloadpostgresql-e7f06ea60a3c07128176b294ce3fb0555edd15a5.tar.gz
postgresql-e7f06ea60a3c07128176b294ce3fb0555edd15a5.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/execParallel.c')
0 files changed, 0 insertions, 0 deletions