This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 2cd7e1437 fix(search): missing the indexing phase for scripting (#2998)
2cd7e1437 is described below

commit 2cd7e143786737fb404b9ab6e1c21132173c1f5e
Author: Twice <[email protected]>
AuthorDate: Wed May 28 14:46:54 2025 +0800

    fix(search): missing the indexing phase for scripting (#2998)
    
    Signed-off-by: PragmaTwice <[email protected]>
---
 src/server/redis_connection.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/server/redis_connection.cc b/src/server/redis_connection.cc
index 443f29a07..47279f29e 100644
--- a/src/server/redis_connection.cc
+++ b/src/server/redis_connection.cc
@@ -372,7 +372,8 @@ Status Connection::ExecuteCommand(engine::Context &ctx, 
const std::string &cmd_n
 
 static bool IsCmdForIndexing(uint64_t cmd_flags, CommandCategory cmd_cat) {
   return (cmd_flags & redis::kCmdWrite) &&
-         (cmd_cat == CommandCategory::Hash || cmd_cat == CommandCategory::JSON 
|| cmd_cat == CommandCategory::Key);
+         (cmd_cat == CommandCategory::Hash || cmd_cat == CommandCategory::JSON 
|| cmd_cat == CommandCategory::Key ||
+          cmd_cat == CommandCategory::Script || cmd_cat == 
CommandCategory::Function);
 }
 
 static bool IsCmdAllowedInStaleData(const std::string &cmd_name) {

Reply via email to