Skip to content

Commit 12b7e92

Browse files
committed
Use new API command flags API after rebasing
1 parent c55ee42 commit 12b7e92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/redis/clients/jedis/executors/ClusterCommandExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public final <T> T executeKeylessCommand(CommandObject<T> commandObject) {
103103
Exception lastException = null;
104104

105105
RequiredConnectionType connectionType;
106-
if (commandObject.getFlags().contains(CommandObject.CommandFlag.READONLY)) {
106+
if (flags.getFlags(commandObject.getArguments())
107+
.contains(CommandFlagsRegistry.CommandFlag.READONLY)) {
107108
connectionType = RequiredConnectionType.REPLICA;
108109
} else {
109110
connectionType = RequiredConnectionType.PRIMARY;

0 commit comments

Comments
 (0)