Skip to content

Commit

Permalink
fixbug: wrong keys position params (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: 姜涛 <[email protected]>
  • Loading branch information
jiangtao244 and 姜涛 authored Oct 27, 2020
1 parent ef9b575 commit eafa1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis-roaring.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ int RedisModule_OnLoad(RedisModuleCtx* ctx) {
if (RedisModule_CreateCommand(ctx, "R.GETBITARRAY", RGetBitArrayCommand, "readonly", 1, 1, 1) == REDISMODULE_ERR) {
return REDISMODULE_ERR;
}
if (RedisModule_CreateCommand(ctx, "R.BITOP", RBitOpCommand, "write", 1, 1, 1) == REDISMODULE_ERR) {
if (RedisModule_CreateCommand(ctx, "R.BITOP", RBitOpCommand, "write", 2, -1, 1) == REDISMODULE_ERR) {
return REDISMODULE_ERR;
}
if (RedisModule_CreateCommand(ctx, "R.BITCOUNT", RBitCountCommand, "readonly", 1, 1, 1) == REDISMODULE_ERR) {
Expand Down

0 comments on commit eafa1bf

Please sign in to comment.