Skip to content

Commit 9258b58

Browse files
mp911dechristophstrobl
authored andcommitted
Ensure all pipelined commands use a dedicated connection to avoid lingering commands when using pipelining with flushing customization.
Original Pull Request: #2088
1 parent 996f42c commit 9258b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void transaction(FutureResult<?> result) {
943943
}
944944

945945
RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() {
946-
if (isQueueing()) {
946+
if (isQueueing() || isPipelined()) {
947947
return getAsyncDedicatedConnection();
948948
}
949949
if (asyncSharedConn != null) {

0 commit comments

Comments
 (0)