Fixed - incorrect sharded pubsub detection

pull/5771/head
Nikita Koksharov 10 months ago
parent 5d93ee321c
commit c93363a3db

@ -177,7 +177,7 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
MasterSlaveEntry entry = getEntrySet().iterator().next();
RedisConnection c = entry.connectionWriteOp(null).join();
try {
c.sync(RedisCommands.SPUBLISH, "", "");
c.sync(RedisCommands.PUBSUB_SHARDNUMSUB);
subscribeService.setShardingSupported(true);
} catch (Exception e) {
// skip

Loading…
Cancel
Save