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 896d31984 fix(stream): ensure XINFO STREAM command has enough
arguments (#2994)
896d31984 is described below
commit 896d319845b1fd61e5dc5611f6de0595195704ae
Author: Robert Sacks <[email protected]>
AuthorDate: Sun May 25 04:14:59 2025 +0000
fix(stream): ensure XINFO STREAM command has enough arguments (#2994)
---
src/commands/cmd_stream.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/cmd_stream.cc b/src/commands/cmd_stream.cc
index d67cf778f..a2ef99509 100644
--- a/src/commands/cmd_stream.cc
+++ b/src/commands/cmd_stream.cc
@@ -673,7 +673,7 @@ class CommandXInfo : public Commander {
public:
Status Parse(const std::vector<std::string> &args) override {
auto val = util::ToLower(args[1]);
- if (val == "stream" && args.size() >= 2) {
+ if (val == "stream" && args.size() >= 3) {
subcommand_ = "stream";
if (args.size() > 3 && util::ToLower(args[3]) == "full") {