Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Oct 24, 2024
1 parent fa157b0 commit 168f589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/cmd_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ class CommandFTTagVals : public Commander {
};

REDIS_REGISTER_COMMANDS(Search,
MakeCmdAttr<CommandFTCreate>("ft.create", -2, "write exclusive no-multi no-script slow", 0, 0,
0),
MakeCmdAttr<CommandFTCreate>("ft.create", -2, "write exclusive no-multi no-script slow",
NO_KEY),
MakeCmdAttr<CommandFTSearchSQL>("ft.searchsql", -2, "read-only", NO_KEY),
MakeCmdAttr<CommandFTSearch>("ft.search", -3, "read-only", NO_KEY),
MakeCmdAttr<CommandFTExplainSQL>("ft.explainsql", -2, "read-only", NO_KEY),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/commander.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ struct CommandAttributes {
flag_gen_(std::move(flag_gen)) {
if (key_range.first_key <= 0 || key_range.key_step <= 0 ||
(key_range.last_key >= 0 && key_range.last_key < key_range.first_key)) {
std::cout << fmt::format("Encountered invalid key range in command {}", name) << std::endl;
std::cout << fmt::format("Encountered invalid key range in command {}", this->name) << std::endl;
std::abort();
}
}
Expand Down

0 comments on commit 168f589

Please sign in to comment.