Skip to content

Commit 68a9aef

Browse files
bootjpCopilot
andauthored
Update proxy/pubsub.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 13681ac commit 68a9aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

proxy/pubsub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const (
4141
// enabling the client to execute regular Redis commands without reconnecting.
4242
type pubsubSession struct {
4343
mu sync.Mutex // protects upstream, closed, and shadow; channelSet/patternSet/txn are goroutine-confined to commandLoop
44-
writeMu sync.Mutex // serializes writes to dconn; never held across state operations
44+
writeMu sync.Mutex // serializes writes to dconn; may be held while acquiring mu (lock ordering: writeMu then mu)
4545
dconn redcon.DetachedConn
4646
upstream *redis.PubSub // nil when not in pub/sub mode
4747
proxy *ProxyServer

0 commit comments

Comments
 (0)