forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf786e91
committed
Improve underdocumented btree_xlog_delete_get_latestRemovedXid() code.
As noted by Noah Misch, btree_xlog_delete_get_latestRemovedXid iscritically dependent on the assumption that it's examining a consistentstate of the database. This was undocumented though, so theseemingly-unrelated check for no active HS sessions might be thought to bemerely an optional optimization. Improve comments, and add an explicitcheck of reachedConsistency just to be sure.This function returns InvalidTransactionId (thereby killing all HStransactions) in several cases that are not nearly unlikely enough for mytaste. This commit doesn't attempt to fix those deficiencies, justdocument them.Back-patch to 9.2, not from any real functional need but just to keep thebranches more closely synced to simplify possible future back-patching.1 parentc1793f2 commitf786e91
1 file changed
+31
-10
lines changedLines changed: 31 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
581 | 581 |
| |
582 | 582 |
| |
583 | 583 |
| |
584 |
| - | |
585 |
| - | |
586 |
| - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
587 | 592 |
| |
588 | 593 |
| |
589 | 594 |
| |
590 | 595 |
| |
591 | 596 |
| |
592 |
| - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
593 | 611 |
| |
594 | 612 |
| |
595 | 613 |
| |
| |||
671 | 689 |
| |
672 | 690 |
| |
673 | 691 |
| |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
680 | 697 |
| |
681 | 698 |
| |
682 | 699 |
| |
| |||
940 | 957 |
| |
941 | 958 |
| |
942 | 959 |
| |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
943 | 964 |
| |
944 | 965 |
| |
945 | 966 |
| |
|
0 commit comments
Comments
(0)