提交 c9d86c2b 编写于 作者: A antirez

CG: More specific duplicated group error.

上级 9f60a6bc
......@@ -1391,7 +1391,8 @@ NULL
if (cg) {
addReply(c,shared.ok);
} else {
addReplyError(c,"Consumer Group name already exists");
addReplySds(c,
sdsnew("-BUSYGROUP Consumer Group name already exists\r\n"));
}
} else if (!strcasecmp(opt,"SETID") && c->argc == 5) {
} else if (!strcasecmp(opt,"DELGROUP") && c->argc == 4) {
......
start_server {
tags {"stream"}
} {
test {XGROUP CREATE: creation and duplicate group name detection} {
r DEL mystream
r XADD mystream * foo bar
r XGROUP CREATE mystream mygroup $
catch {r XGROUP CREATE mystream mygroup $} err
set err
} {BUSYGROUP*}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册