forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1296d5c
committed
Fix a couple of error-handling bugs in the xlogreader patch.
XLogReadRecord should reset its state on every error, to make sure itre-reads the page on next call. It was inconsistent in that some errors didthat, but some did not.In ReadRecord(), don't give up on an error if we're in standby mode. Theloop was set up to retry, but the checks within the loop broke out of theloop on any error.Andres Freund, with some tweaking by me.1 parentb14f81b commit1296d5c
2 files changed
+28
-33
lines changedLines changed: 21 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3180 | 3180 |
| |
3181 | 3181 |
| |
3182 | 3182 |
| |
3183 |
| - | |
| 3183 | + | |
| 3184 | + | |
3184 | 3185 |
| |
3185 | 3186 |
| |
3186 | 3187 |
| |
| |||
3209 | 3210 |
| |
3210 | 3211 |
| |
3211 | 3212 |
| |
3212 |
| - | |
3213 |
| - | |
3214 |
| - | |
3215 |
| - | |
3216 |
| - | |
3217 |
| - | |
3218 | 3213 |
| |
3219 | 3214 |
| |
3220 | 3215 |
| |
3221 | 3216 |
| |
3222 | 3217 |
| |
3223 | 3218 |
| |
3224 | 3219 |
| |
3225 |
| - | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
3226 | 3234 |
| |
3227 | 3235 |
| |
3228 | 3236 |
| |
| |||
3234 | 3242 |
| |
3235 | 3243 |
| |
3236 | 3244 |
| |
| 3245 | + | |
| 3246 | + | |
3237 | 3247 |
| |
3238 | 3248 |
| |
3239 | 3249 |
| |
| |||
3243 | 3253 |
| |
3244 | 3254 |
| |
3245 | 3255 |
| |
3246 |
| - | |
| 3256 | + | |
| 3257 | + | |
3247 | 3258 |
| |
3248 |
| - | |
| 3259 | + | |
3249 | 3260 |
| |
3250 | 3261 |
| |
3251 | 3262 |
| |
|
Lines changed: 7 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
| 225 | + | |
230 | 226 |
| |
231 | 227 |
| |
232 | 228 |
| |
| |||
246 | 242 |
| |
247 | 243 |
| |
248 | 244 |
| |
249 |
| - | |
250 |
| - | |
| 245 | + | |
251 | 246 |
| |
252 | 247 |
| |
253 | 248 |
| |
254 | 249 |
| |
255 | 250 |
| |
256 | 251 |
| |
257 | 252 |
| |
258 |
| - | |
259 |
| - | |
| 253 | + | |
260 | 254 |
| |
261 | 255 |
| |
262 | 256 |
| |
| |||
270 | 264 |
| |
271 | 265 |
| |
272 | 266 |
| |
273 |
| - | |
274 |
| - | |
275 |
| - | |
276 |
| - | |
277 |
| - | |
| 267 | + | |
278 | 268 |
| |
279 | 269 |
| |
280 | 270 |
| |
| |||
300 | 290 |
| |
301 | 291 |
| |
302 | 292 |
| |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
| 293 | + | |
308 | 294 |
| |
309 | 295 |
| |
310 | 296 |
| |
| |||
314 | 300 |
| |
315 | 301 |
| |
316 | 302 |
| |
317 |
| - | |
318 |
| - | |
| 303 | + | |
319 | 304 |
| |
320 | 305 |
| |
321 | 306 |
| |
| |||
330 | 315 |
| |
331 | 316 |
| |
332 | 317 |
| |
333 |
| - | |
334 |
| - | |
| 318 | + | |
335 | 319 |
| |
336 | 320 |
| |
337 | 321 |
| |
|
0 commit comments
Comments
(0)