mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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 |
||
|---|---|---|
| .. | ||
| po | ||
| t | ||
| .gitignore | ||
| copy_fetch.c | ||
| datapagemap.c | ||
| datapagemap.h | ||
| fetch.c | ||
| fetch.h | ||
| file_ops.c | ||
| file_ops.h | ||
| filemap.c | ||
| filemap.h | ||
| libpq_fetch.c | ||
| Makefile | ||
| nls.mk | ||
| parsexlog.c | ||
| pg_rewind.c | ||
| pg_rewind.h | ||
| timeline.c | ||