From 9d83af30abb5aa9430f60d0f8713b7b7d76b4a33 Mon Sep 17 00:00:00 2001 From: JingZhang Chen Date: Fri, 16 Aug 2024 11:39:34 +0800 Subject: [PATCH] fix:Deadlock when reentrant exclusive lock #2905 --- src/main/java/io/lettuce/core/protocol/SharedLock.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/lettuce/core/protocol/SharedLock.java b/src/main/java/io/lettuce/core/protocol/SharedLock.java index 13a9cb8cfe..315c1a39c6 100644 --- a/src/main/java/io/lettuce/core/protocol/SharedLock.java +++ b/src/main/java/io/lettuce/core/protocol/SharedLock.java @@ -113,7 +113,6 @@ T doExclusive(Supplier supplier) { private void lockWritersExclusive() { if (exclusiveLockOwner == Thread.currentThread()) { - WRITERS.decrementAndGet(this); return; }