forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita7bcf39
committed
Remove useless lstat() call in pg_rewind.
This is duplicative of an lstat that was just done by the callingfunction (traverse_datadir), besides which we weren't really doinganything with the results. There's not much point in checking tosee if someone removed the file since the previous lstat, since theFILE_ACTION_REMOVE code would have to deal with missing-file casesanyway. 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.5where this code was introduced.Discussion:https://postgr.es/m/1221796.1599329320@sss.pgh.pa.us1 parentfc37c6f commita7bcf39
1 file changed
+0
-12
lines changedLines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
346 |
| - | |
347 | 345 |
| |
348 | 346 |
| |
349 | 347 |
| |
| |||
355 | 353 |
| |
356 | 354 |
| |
357 | 355 |
| |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 | 356 |
| |
369 | 357 |
| |
370 | 358 |
| |
|
0 commit comments
Comments
(0)