We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55ee42 commit 12b7e92Copy full SHA for 12b7e92
src/main/java/redis/clients/jedis/executors/ClusterCommandExecutor.java
@@ -103,7 +103,8 @@ public final <T> T executeKeylessCommand(CommandObject<T> commandObject) {
103
Exception lastException = null;
104
105
RequiredConnectionType connectionType;
106
- if (commandObject.getFlags().contains(CommandObject.CommandFlag.READONLY)) {
+ if (flags.getFlags(commandObject.getArguments())
107
+ .contains(CommandFlagsRegistry.CommandFlag.READONLY)) {
108
connectionType = RequiredConnectionType.REPLICA;
109
} else {
110
connectionType = RequiredConnectionType.PRIMARY;
0 commit comments