forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3055656
committed
Update the location of last removed WAL segment in shared memory only
after actually removing one, so that if we can't remove segments becauseWAL archiving is lagging behind, we don't unnecessarily forbid streamingthe old not-yet-archived segments that are still perfectly valid. Persuggestion from Fujii Masao.1 parent258174b commit3055656
File tree
2 files changed
+35
-15
lines changed- src
- backend/access/transam
- include/access
2 files changed
+35
-15
lines changedLines changed: 31 additions & 14 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 |
| |
| |||
546 | 546 |
| |
547 | 547 |
| |
548 | 548 |
| |
| 549 | + | |
549 | 550 |
| |
550 | 551 |
| |
551 | 552 |
| |
| |||
3168 | 3169 |
| |
3169 | 3170 |
| |
3170 | 3171 |
| |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
3171 | 3197 |
| |
3172 | 3198 |
| |
3173 | 3199 |
| |
| |||
3189 | 3215 |
| |
3190 | 3216 |
| |
3191 | 3217 |
| |
3192 |
| - | |
3193 |
| - | |
3194 | 3218 |
| |
3195 |
| - | |
3196 |
| - | |
3197 |
| - | |
3198 |
| - | |
3199 |
| - | |
3200 |
| - | |
3201 |
| - | |
3202 |
| - | |
3203 |
| - | |
3204 |
| - | |
3205 |
| - | |
| 3219 | + | |
3206 | 3220 |
| |
3207 | 3221 |
| |
3208 | 3222 |
| |
| |||
3252 | 3266 |
| |
3253 | 3267 |
| |
3254 | 3268 |
| |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
3255 | 3272 |
| |
3256 | 3273 |
| |
3257 | 3274 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 |
| |
220 | 223 |
| |
221 | 224 |
| |
|
0 commit comments
Comments
(0)