Skip to content

Commit 89cb811

Browse files
committed
Bug fix in JedisCluster scan (#1902)
1 parent c6e7faa commit 89cb811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ public ScanResult<String> scan(final String cursor, final ScanParams params) {
12571257
+ " only supports SCAN commands with non-empty MATCH patterns");
12581258
}
12591259

1260-
if (JedisClusterHashTagUtil.isClusterCompliantMatchPattern(matchPattern)) {
1260+
if (!JedisClusterHashTagUtil.isClusterCompliantMatchPattern(matchPattern)) {
12611261
throw new IllegalArgumentException(JedisCluster.class.getSimpleName()
12621262
+ " only supports SCAN commands with MATCH patterns containing hash-tags ( curly-brackets enclosed strings )");
12631263
}

0 commit comments

Comments
 (0)