PragmaTwice commented on code in PR #3172: URL: https://github.com/apache/kvrocks/pull/3172#discussion_r2361903632
########## src/commands/cmd_search.cc: ########## @@ -540,9 +540,12 @@ class CommandFTTagVals : public Commander { Status Execute(engine::Context &ctx, Server *srv, Connection *conn, std::string *output) override { const auto &index_name = args_[1]; const auto &tag_field_name = args_[2]; - auto field_values = GET_OR_RET(srv->index_mgr.TagValues(ctx, index_name, tag_field_name, conn->GetNamespace())); + auto field_values = srv->index_mgr.TagValues(ctx, index_name, tag_field_name, conn->GetNamespace()); + if (!field_values.IsOK()) { + return field_values.ToStatus(); + } Review Comment: ```suggestion if (!field_values) { return field_values; } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@kvrocks.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org