File tree 2 files changed +9
-9
lines changed
src/main/java/redis/clients/jedis
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8581,13 +8581,6 @@ public String clusterNodes() {
8581
8581
return connection .getBulkReply ();
8582
8582
}
8583
8583
8584
- @ Override
8585
- public String clusterReplicas (final String nodeId ) {
8586
- checkIsInMultiOrPipeline ();
8587
- connection .sendCommand (CLUSTER , ClusterKeyword .REPLICAS .name (), nodeId );
8588
- return connection .getBulkReply ();
8589
- }
8590
-
8591
8584
@ Override
8592
8585
public String clusterMeet (final String ip , final int port ) {
8593
8586
checkIsInMultiOrPipeline ();
@@ -8743,6 +8736,13 @@ public List<String> clusterSlaves(final String nodeId) {
8743
8736
return connection .getMultiBulkReply ();
8744
8737
}
8745
8738
8739
+ @ Override
8740
+ public List <String > clusterReplicas (final String nodeId ) {
8741
+ checkIsInMultiOrPipeline ();
8742
+ connection .sendCommand (CLUSTER , ClusterKeyword .REPLICAS .name (), nodeId );
8743
+ return connection .getMultiBulkReply ();
8744
+ }
8745
+
8746
8746
@ Override
8747
8747
public String clusterFailover () {
8748
8748
checkIsInMultiOrPipeline ();
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ public interface ClusterCommands {
16
16
17
17
String clusterNodes ();
18
18
19
- String clusterReplicas (String nodeId );
20
-
21
19
String clusterMeet (String ip , int port );
22
20
23
21
String clusterAddSlots (int ... slots );
@@ -75,6 +73,8 @@ public interface ClusterCommands {
75
73
@ Deprecated
76
74
List <String > clusterSlaves (String nodeId );
77
75
76
+ List <String > clusterReplicas (String nodeId );
77
+
78
78
String clusterFailover ();
79
79
80
80
String clusterFailover (ClusterFailoverOption failoverOption );
You can’t perform that action at this time.
0 commit comments