Skip to content

Commit

Permalink
MONITOR command to return error since not supported (microsoft#543)
Browse files Browse the repository at this point in the history
* MONITOR command to return error since not supported

* format
  • Loading branch information
TalZaccai authored Jul 30, 2024
1 parent a1e6e77 commit fb51144
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libs/server/Resp/AdminCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ void CommitAof()

private bool NetworkMonitor(int count)
{
// TODO: Not supported yet.
if (count != 0)
{
return AbortWithWrongNumberOfArguments(nameof(RespCommand.MONITOR), count);
}

while (!RespWriteUtils.WriteError(CmdStrings.RESP_ERR_GENERIC_UNK_CMD, ref dcurr, dend))
SendAndReset();

return true;
}

Expand Down

0 comments on commit fb51144

Please sign in to comment.