- Notifications
You must be signed in to change notification settings - Fork28
Commite7f06ea
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 parent8df601b commite7f06ea
1 file changed
+0
-12
lines changedLines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
352 |
| - | |
353 |
| - | |
354 | 352 |
| |
355 | 353 |
| |
356 | 354 |
| |
| |||
362 | 360 |
| |
363 | 361 |
| |
364 | 362 |
| |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 | 363 |
| |
376 | 364 |
| |
377 | 365 |
| |
|
0 commit comments
Comments
(0)