- Notifications
You must be signed in to change notification settings - Fork5
Commitf7271c4
committed
Fix relcache reference leak in refresh_by_match_merge().
One path through the loop over indexes forgot to do index_close(). Ratherthan adding a fourth call, restructure slightly so that there's only one.In passing, get rid of an unnecessary syscache lookup: the pg_index structfor the index is already available from its relcache entry.Per report from YAMAMOTO Takashi, though this is a bit different from hissuggested patch. This is new code in HEAD, so no need for back-patch.1 parent3bd261c commitf7271c4
1 file changed
+13
-28
lines changedLines changed: 13 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
612 |
| - | |
613 | 612 |
| |
614 | 613 |
| |
615 | 614 |
| |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
623 | 625 |
| |
624 | 626 |
| |
625 | 627 |
| |
626 | 628 |
| |
627 |
| - | |
628 |
| - | |
629 |
| - | |
630 |
| - | |
631 |
| - | |
632 |
| - | |
633 |
| - | |
634 |
| - | |
635 |
| - | |
636 |
| - | |
637 |
| - | |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
645 |
| - | |
646 | 629 |
| |
647 | 630 |
| |
648 | 631 |
| |
| |||
675 | 658 |
| |
676 | 659 |
| |
677 | 660 |
| |
678 |
| - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
679 | 664 |
| |
680 | 665 |
| |
681 | 666 |
| |
|
0 commit comments
Comments
(0)