- Notifications
You must be signed in to change notification settings - Fork5.1k
Commitd814d7f
committed
Revert recent change to RequestNamedLWLockTranche().
Commit38b602b modified this function to allocate enough spacefor MAX_NAMED_TRANCHES (256) requests, which is likely far morethan most clusters need. This commit reverts that change so thatit first allocates enough space for only 16 requests and resizesthe array when necessary. While at it, remove the check for toomany tranches from this function. We can now rely onInitializeLWLocks() to do that check via its calls toLWLockNewTrancheId() for the named tranches.Reviewed-by: Sami Imseih <samimseih@gmail.com>Discussion:https://postgr.es/m/aLmzwC2dRbqk14y6%40nathan1 parentf047814 commitd814d7f
1 file changed
+12
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
| 613 | + | |
613 | 614 |
| |
614 | 615 |
| |
615 | 616 |
| |
| |||
628 | 629 |
| |
629 | 630 |
| |
630 | 631 |
| |
| 632 | + | |
631 | 633 |
| |
632 | 634 |
| |
633 |
| - | |
| 635 | + | |
634 | 636 |
| |
635 | 637 |
| |
636 | 638 |
| |
637 |
| - | |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
642 | 648 |
| |
643 | 649 |
| |
644 | 650 |
| |
|
0 commit comments
Comments
(0)