Commit 407d8e5
authored
Fix deadlock on stream purge when consumer store returns error (#7546)
At the point that we enter `(*consumer).purge()`, the stream lock is
already held. Therefore calling `mset.name()` on the error case
deadlocks because it tries to acquire the stream lock again. Replaced
with `mset.nameLocked(false)` so that we do not attempt to acquire the
lock.
Signed-off-by: Neil Twigg <[email protected]>1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5874 | 5874 | | |
5875 | 5875 | | |
5876 | 5876 | | |
5877 | | - | |
| 5877 | + | |
| 5878 | + | |
5878 | 5879 | | |
5879 | 5880 | | |
5880 | 5881 | | |
| |||
5955 | 5956 | | |
5956 | 5957 | | |
5957 | 5958 | | |
5958 | | - | |
| 5959 | + | |
5959 | 5960 | | |
5960 | 5961 | | |
5961 | 5962 | | |
| |||
0 commit comments