mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix: command docs (#4229)
Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
a4b3724929
commit
872e49b0b8
2 changed files with 6 additions and 1 deletions
|
@ -2450,7 +2450,7 @@ void Service::Command(CmdArgList args, Transaction* tx, SinkReplyBuilder* builde
|
|||
return builder->SendLong(cmd_cnt);
|
||||
}
|
||||
|
||||
const bool sufficient_args = (args.size() == 2);
|
||||
bool sufficient_args = (args.size() == 2);
|
||||
|
||||
// INFO [cmd]
|
||||
if (subcmd == "INFO" && sufficient_args) {
|
||||
|
@ -2466,6 +2466,7 @@ void Service::Command(CmdArgList args, Transaction* tx, SinkReplyBuilder* builde
|
|||
return;
|
||||
}
|
||||
|
||||
sufficient_args = (args.size() == 1);
|
||||
if (subcmd == "DOCS" && sufficient_args) {
|
||||
return builder->SendOk();
|
||||
}
|
||||
|
|
|
@ -545,4 +545,8 @@ TEST_F(ServerFamilyTest, ConfigNormalization) {
|
|||
RespArray(ElementsAre("replica_priority", "13")));
|
||||
}
|
||||
|
||||
TEST_F(ServerFamilyTest, CommandDocsOk) {
|
||||
EXPECT_THAT(Run({"command", "docs"}), "OK");
|
||||
}
|
||||
|
||||
} // namespace dfly
|
||||
|
|
Loading…
Reference in a new issue