forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5e49c98
committed
Improve pg_check_dir code and comments.
Avoid losing errno if readdir() fails and closedir() works. Consistentlyreturn 4 rather than 3 if both a lost+found directory and other files arefound, rather than returning one value or the other depending on theorder of the directory listing. Update comments to match the actualbehavior.These oversights date to commits6f03927and17f1523.Marco Nenciarini1 parent23291a7 commit5e49c98
1 file changed
+19
-4
lines changedLines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| |||
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| 37 | + | |
| 38 | + | |
35 | 39 |
| |
36 | 40 |
| |
37 | 41 |
| |
| |||
51 | 55 |
| |
52 | 56 |
| |
53 | 57 |
| |
| 58 | + | |
54 | 59 |
| |
55 | 60 |
| |
56 |
| - | |
57 |
| - | |
| 61 | + | |
58 | 62 |
| |
59 | 63 |
| |
60 | 64 |
| |
| |||
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
67 |
| - | |
| 71 | + | |
68 | 72 |
| |
69 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 |
| |
71 | 86 |
| |
72 | 87 |
| |
|
0 commit comments
Comments
(0)