-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: implement new command EXZINTER and EXZINTERSTORE. #9
Conversation
Signed-off-by: RinChanNOWWW <hzy427@gmail.com>
@@ -2108,6 +2183,8 @@ int Module_CreateCommands(RedisModuleCtx *ctx) { | |||
CREATE_WRCMD("exzremrangebyscore", TairZsetTypeZremrangebyscore_RedisCommand) | |||
CREATE_WRCMD("exzremrangebyrank", TairZsetTypeZremrangebyrank_RedisCommand) | |||
CREATE_WRCMD("exzremrangebylex", TairZsetTypeZremrangebylex_RedisCommand) | |||
CREATE_WRCMD("exzunionstore", TairZsetTypeZunionstore_RedisCommand) | |||
CREATE_WRCMD("exzinterstore", TairZsetTypeZinterstore_RedisCommand) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前竟然没review出来;(
@@ -2108,6 +2183,8 @@ int Module_CreateCommands(RedisModuleCtx *ctx) { | |||
CREATE_WRCMD("exzremrangebyscore", TairZsetTypeZremrangebyscore_RedisCommand) | |||
CREATE_WRCMD("exzremrangebyrank", TairZsetTypeZremrangebyrank_RedisCommand) | |||
CREATE_WRCMD("exzremrangebylex", TairZsetTypeZremrangebylex_RedisCommand) | |||
CREATE_WRCMD("exzunionstore", TairZsetTypeZunionstore_RedisCommand) | |||
CREATE_WRCMD("exzinterstore", TairZsetTypeZinterstore_RedisCommand) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前竟然没review出来;(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也疏忽了,写成Readonly命令竟然运行起来没问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写命令如果误写成RO命令,在master上执行基本没啥区别,但是在slave上就有不同了。slave默认是只读的,所以这个被误标记为RO的写命令也将可写,从而可能造成主备不一致。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: RinChanNOWWW hzy427@gmail.com
Summary
related issues: #4
Implementation reference: Redis 6.2