forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6b020d2
committed
Fix pg_basebackup for keepalive messages
Teach pg_basebackup in streaming mode to deal with keepalive messages.Also change the order of checks to complain at the message rather thanblock size when a new message is introduced.In passing, switch to using sizeof() instead of hardcoded sizes forWAL protocol structs.1 parentdb49517 commit6b020d2
1 file changed
+23
-7
lines changedLines changed: 23 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 |
| - | |
| 378 | + | |
378 | 379 |
| |
379 |
| - | |
380 |
| - | |
381 |
| - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
382 | 392 |
| |
383 |
| - | |
| 393 | + | |
384 | 394 |
| |
385 | 395 |
| |
386 | 396 |
| |
387 | 397 |
| |
388 | 398 |
| |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
389 | 405 |
| |
390 | 406 |
| |
391 | 407 |
| |
|
0 commit comments
Comments
(0)