Skip to content
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

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Feat: implement new command EXZINTER and EXZINTERSTORE. #9

merged 1 commit into from
Jul 1, 2022

Conversation

RinChanNOWWW
Copy link
Contributor

Signed-off-by: RinChanNOWWW hzy427@gmail.com

Summary

related issues: #4

Implementation reference: Redis 6.2

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)
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前竟然没review出来;(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也疏忽了,写成Readonly命令竟然运行起来没问题

Copy link
Collaborator

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的写命令也将可写,从而可能造成主备不一致。

Copy link
Collaborator

@chenyang8094 chenyang8094 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenyang8094 chenyang8094 added the to-be-merged to be merged label Jul 1, 2022
@chenyang8094 chenyang8094 merged commit 704af74 into tair-opensource:master Jul 1, 2022
@RinChanNOWWW RinChanNOWWW deleted the FEAT-INTER branch July 1, 2022 13:12
@RinChanNOWWW RinChanNOWWW restored the FEAT-INTER branch July 1, 2022 13:13
@RinChanNOWWW RinChanNOWWW deleted the FEAT-INTER branch July 1, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-be-merged to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants