From 4848a1739f306e8fffc21c5770a6742b872138f4 Mon Sep 17 00:00:00 2001 From: Saubhik Kumar Date: Tue, 17 Dec 2024 08:41:25 +0530 Subject: [PATCH] add command as single shard command --- internal/iothread/cmd_meta.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/iothread/cmd_meta.go b/internal/iothread/cmd_meta.go index a72e56fd9..e3fe5a156 100644 --- a/internal/iothread/cmd_meta.go +++ b/internal/iothread/cmd_meta.go @@ -179,6 +179,7 @@ const ( CmdCommandDocs = "COMMAND|DOCS" CmdCommandGetKeys = "COMMAND|GETKEYS" CmdCommandGetKeysFlags = "COMMAND|GETKEYSANDFLAGS" + CmdJSONArrIndex = "JSON.ARRINDEX" ) // Multi-shard commands. @@ -570,6 +571,9 @@ var CommandsMeta = map[string]CmdMeta{ CmdCommandGetKeysFlags: { CmdType: SingleShard, }, + CmdJSONArrIndex: { + CmdType: SingleShard, + }, // Multi-shard commands. CmdRename: {