forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc670410
committed
Move the responsibility for calling StartupXLOG into InitPostgres, for
those process types that go through InitPostgres; in particular, bootstrapand standalone-backend cases. This ensures that we have set up a PGPROCand done some other basic initialization steps (corresponding to theif (IsUnderPostmaster) block in AuxiliaryProcessMain) before we attempt torun WAL recovery in a standalone backend. As was discovered last September,this is necessary for some corner-case code paths during WAL recovery,particularly end-of-WAL cleanup.Moving the bootstrap case here too is not necessary for correctness, but itseems like a good idea since it reduces the number of distinct code paths.1 parentee7769b commitc670410
File tree
3 files changed
+34
-44
lines changed- src/backend
- bootstrap
- tcop
- utils/init
3 files changed
+34
-44
lines changedLines changed: 5 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
397 | 397 |
| |
398 | 398 |
| |
399 | 399 |
| |
400 |
| - | |
| 400 | + | |
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
407 |
| - | |
408 | 407 |
| |
409 | 408 |
| |
410 | 409 |
| |
| |||
438 | 437 |
| |
439 | 438 |
| |
440 | 439 |
| |
441 |
| - | |
| 440 | + | |
| 441 | + | |
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
446 |
| - | |
447 |
| - | |
448 |
| - | |
449 |
| - | |
450 |
| - | |
451 |
| - | |
452 |
| - | |
453 |
| - | |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 | 446 |
| |
459 | 447 |
| |
460 | 448 |
| |
| |||
478 | 466 |
| |
479 | 467 |
| |
480 | 468 |
| |
| 469 | + | |
481 | 470 |
| |
482 | 471 |
| |
483 | 472 |
| |
| |||
498 | 487 |
| |
499 | 488 |
| |
500 | 489 |
| |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 | 490 |
| |
506 | 491 |
| |
507 | 492 |
| |
|
Lines changed: 5 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3531 | 3531 |
| |
3532 | 3532 |
| |
3533 | 3533 |
| |
3534 |
| - | |
3535 |
| - | |
3536 |
| - | |
3537 |
| - | |
3538 |
| - | |
| 3534 | + | |
3539 | 3535 |
| |
3540 | 3536 |
| |
3541 | 3537 |
| |
| |||
3551 | 3547 |
| |
3552 | 3548 |
| |
3553 | 3549 |
| |
3554 |
| - | |
3555 |
| - | |
3556 |
| - | |
3557 |
| - | |
3558 |
| - | |
3559 |
| - | |
3560 |
| - | |
3561 |
| - | |
3562 |
| - | |
3563 | 3550 |
| |
3564 | 3551 |
| |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
3565 | 3555 |
| |
3566 | 3556 |
| |
3567 | 3557 |
| |
|
Lines changed: 24 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
435 | 433 |
| |
436 | 434 |
| |
437 | 435 |
| |
| |||
512 | 510 |
| |
513 | 511 |
| |
514 | 512 |
| |
515 |
| - | |
516 |
| - | |
| 513 | + | |
517 | 514 |
| |
518 |
| - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 |
| |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
520 | 535 |
| |
521 | 536 |
| |
522 | 537 |
| |
|
0 commit comments
Comments
(0)