Skip to content

Commit c4fb2b4

Browse files
author
Mayank Dang
committed
Fix redis#550 : Removed redundant call to connectionPool.getResource() in method getConnectionFromSlot(int slot) in class JedisSlotBasedConnectionHandler
1 parent b2fa6b6 commit c4fb2b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ target/
99
build/
1010
bin/
1111
tags
12+
.idea
13+
*.aof
14+
*.rdb

src/main/java/redis/clients/jedis/JedisSlotBasedConnectionHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public Jedis getConnectionFromSlot(int slot) {
4040
connectionPool = getRandomConnection();
4141
}
4242
currentConnection = connectionPool.getResource();
43-
return connectionPool.getResource();
43+
return currentConnection;
4444
}
4545

4646
}

0 commit comments

Comments
 (0)