- Notifications
You must be signed in to change notification settings - Fork5
Commit80727ce
committed
Use stat(2) to probe for existing xlog segments in InstallXLogFileSegment,
rather than actually opening the files. This eliminates some corner caseswhere the file indeed exists but open() fails for another reason, suchas being out of file descriptors. The net reliability gain is probablytiny, since xlog.c is full of other file open calls that will elog(PANIC)if they fail for any reason; but this specific failure mode has beenobserved in the field, so we may as well fix it.1 parent7a196ba commit80727ce
1 file changed
+3
-5
lines changedLines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 | 1473 |
| |
1474 |
| - | |
| 1474 | + | |
1475 | 1475 |
| |
1476 | 1476 |
| |
1477 | 1477 |
| |
| |||
1489 | 1489 |
| |
1490 | 1490 |
| |
1491 | 1491 |
| |
1492 |
| - | |
1493 |
| - | |
| 1492 | + | |
1494 | 1493 |
| |
1495 |
| - | |
1496 | 1494 |
| |
1497 | 1495 |
| |
1498 | 1496 |
| |
|
0 commit comments
Comments
(0)