forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit11b09d2
Avoid creating parallel apply state hash table unless required.
This hash table is used to cache the state of streaming transactions beingapplied by the parallel apply workers. So, this should be created onlywhen we are successful in launching at least one worker. This avoids rarecase memory leak when we are never able to launch any worker.Author: Ted YuDiscussion:https://postgr.es/m/CALte62wg0rBR3Vj2beV=HiWo2qG9L0hzKcX=yULNER0wmf4aEw@mail.gmail.com1 parentdf47666 commit11b09d2
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
478 | 482 |
| |
479 | 483 |
| |
480 | 484 |
| |
| |||
490 | 494 |
| |
491 | 495 |
| |
492 | 496 |
| |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
|
0 commit comments
Comments
(0)