Skip to content

Commit 39eaa24

Browse files
authored
Merge pull request #19 from gkorland/patch-1
fix #17 number of arguments for FT.TENSOR + VALUES
2 parents b3e1432 + a951b30 commit 39eaa24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redistf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ int RedisTF_Tensor_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, i
395395
}
396396
}
397397

398-
if (hasdata && datafmt == REDISTF_DATA_VALUES && argc != len + 6) {
398+
if (hasdata && datafmt == REDISTF_DATA_VALUES && argc != len + 5 + ndims) {
399399
RedisModule_CloseKey(key);
400400
return RedisModule_WrongArity(ctx);
401401
}

0 commit comments

Comments
 (0)