Skip to content

Commit a951b30

Browse files
authored
fix #17 number of arguments for FT.TENSOR + VALUES
1 parent b3e1432 commit a951b30

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)