- Notifications
You must be signed in to change notification settings - Fork28
Commit3b2787e
committed
Fix broken cleanup interlock for GIN pending list.
The pending list must (for correctness) always be cleaned up by vacuum, andshould (for the avoidance of surprising behavior) always be cleaned upby an explicit call to gin_clean_pending_list, but cleanup is optionalwhen inserting. The old logic got this backward: cleanup was forcedif (stats == NULL), but that's going to be *false* when vacuuming and*true* for inserts.Masahiko Sawada, reviewed by me.Discussion:http://postgr.es/m/CAD21AoBLUSyiYKnTYtSAbC+F=XDjiaBrOUEGK+zUXdQ8owfPKw@mail.gmail.com1 parent6b2cd27 commit3b2787e
File tree
3 files changed
+13
-9
lines changed- src
- backend/access/gin
- include/access
3 files changed
+13
-9
lines changedLines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
450 | 450 |
| |
451 | 451 |
| |
452 | 452 |
| |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
453 | 457 |
| |
454 |
| - | |
| 458 | + | |
455 | 459 |
| |
456 | 460 |
| |
457 | 461 |
| |
| |||
748 | 752 |
| |
749 | 753 |
| |
750 | 754 |
| |
751 |
| - | |
| 755 | + | |
| 756 | + | |
752 | 757 |
| |
753 | 758 |
| |
754 | 759 |
| |
| |||
765 | 770 |
| |
766 | 771 |
| |
767 | 772 |
| |
768 |
| - | |
769 | 773 |
| |
770 | 774 |
| |
771 | 775 |
| |
| |||
774 | 778 |
| |
775 | 779 |
| |
776 | 780 |
| |
777 |
| - | |
| 781 | + | |
778 | 782 |
| |
779 | 783 |
| |
780 | 784 |
| |
| |||
1036 | 1040 |
| |
1037 | 1041 |
| |
1038 | 1042 |
| |
1039 |
| - | |
| 1043 | + | |
1040 | 1044 |
| |
1041 | 1045 |
| |
1042 | 1046 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
570 | 570 |
| |
571 | 571 |
| |
572 | 572 |
| |
573 |
| - | |
| 573 | + | |
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
| |||
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
686 |
| - | |
| 686 | + | |
687 | 687 |
| |
688 | 688 |
| |
689 | 689 |
| |
| |||
697 | 697 |
| |
698 | 698 |
| |
699 | 699 |
| |
700 |
| - | |
| 700 | + | |
701 | 701 |
| |
702 | 702 |
| |
703 | 703 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
442 |
| - | |
| 442 | + | |
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
|
0 commit comments
Comments
(0)