forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a90ec9
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 parent7bc6e59 commit9a90ec9
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 |
| |
| |||
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
73 |
| - | |
| 77 | + | |
74 | 78 |
| |
75 | 79 |
| |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
76 | 91 |
| |
77 | 92 |
| |
78 | 93 |
| |
|
0 commit comments
Comments
(0)