Commit 77d2043
committed
store: Avoid deadlocking on connection pool
The start_subgraph code called load_indexes while holding a connection;
load_indexes tries to get another connection. If the pool is exhausted
because many subgraphs are starting, we end up in a deadlock.1 parent f914287 commit 77d2043
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
753 | 755 | | |
754 | 756 | | |
755 | 757 | | |
| |||
1608 | 1610 | | |
1609 | 1611 | | |
1610 | 1612 | | |
1611 | | - | |
1612 | | - | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
1613 | 1616 | | |
1614 | 1617 | | |
1615 | 1618 | | |
| |||
0 commit comments