From cade0e80457e0068bc4c484aa094b1e73180d1aa Mon Sep 17 00:00:00 2001 From: Borys Date: Thu, 11 Jul 2024 11:11:26 +0300 Subject: [PATCH] fix: forbid DFLYCLUSTER commads set for emulated cluster mode --- src/server/cluster/cluster_family.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/cluster/cluster_family.cc b/src/server/cluster/cluster_family.cc index e7ba2f4e088e..756d09368260 100644 --- a/src/server/cluster/cluster_family.cc +++ b/src/server/cluster/cluster_family.cc @@ -401,7 +401,7 @@ void ClusterFamily::ReadWrite(CmdArgList args, ConnectionContext* cntx) { } void ClusterFamily::DflyCluster(CmdArgList args, ConnectionContext* cntx) { - if (!IsClusterEnabledOrEmulated()) { + if (!IsClusterEnabled()) { return cntx->SendError(kClusterDisabled); }