Skip to content

Commit 2d40882

Browse files
committed
Remove the deprecation warning logging for all deprecated commands
1 parent d17b570 commit 2d40882

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/redisai.c

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ int RedisAI_TensorGet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
137137
*/
138138
int RedisAI_ModelSet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
139139

140-
RedisModule_Log(ctx, "warning",
141-
"AI.MODELSET command is deprecated and will"
142-
" not be available in future version, you can use AI.MODELSTORE instead");
143140
return ModelSetCommand(ctx, argv, argc);
144141
}
145142

@@ -704,9 +701,6 @@ int RedisAI_ScriptDel_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
704701
* AI.SCRIPTSET script_key device [TAG tag] SOURCE script_source
705702
*/
706703
int RedisAI_ScriptSet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
707-
RedisModule_Log(ctx, "warning",
708-
"AI.SCRIPTSET command is deprecated and will"
709-
" not be available in future version, you can use AI.SCRIPTSTORE instead");
710704
return ScriptSetCommand(ctx, argv, argc);
711705
}
712706

@@ -953,16 +947,9 @@ int RedisAI_Config_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, i
953947
*/
954948
int RedisAI_DagRun_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
955949
if (IsEnterprise()) {
956-
RedisModule_Log(ctx, "warning",
957-
"AI.DAGRUN command is deprecated and cannot be used in "
958-
"enterprise cluster, use AI.DAGEXECUTE instead");
959950
return RedisModule_ReplyWithError(
960951
ctx, "ERR AI.DAGRUN command is deprecated and cannot be used in "
961952
"enterprise cluster, use AI.DAGEXECUTE instead");
962-
} else {
963-
RedisModule_Log(ctx, "warning",
964-
"AI.DAGRUN command is deprecated and will"
965-
" not be available in future version, you can use AI.DAGEXECUTE instead");
966953
}
967954
if (RedisModule_IsKeysPositionRequest(ctx)) {
968955
return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys(ctx, argv, argc);
@@ -998,16 +985,9 @@ int RedisAI_DagExecute_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **arg
998985
*/
999986
int RedisAI_DagRunRO_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
1000987
if (IsEnterprise()) {
1001-
RedisModule_Log(ctx, "warning",
1002-
"AI.DAGRUN_RO command is deprecated and cannot be used in "
1003-
"enterprise cluster, use AI.DAGEXECUTE_RO instead");
1004988
return RedisModule_ReplyWithError(
1005989
ctx, "ERR AI.DAGRUN_RO command is deprecated and cannot be used in "
1006-
"enterprise cluster, use AI.DAGEXECUTE instead");
1007-
} else {
1008-
RedisModule_Log(ctx, "warning",
1009-
"AI.DAGRUN_RO command is deprecated and will"
1010-
" not be available in future version, you can use AI.DAGEXECUTE instead");
990+
"enterprise cluster, use AI.DAGEXECUTE_RO instead");
1011991
}
1012992
if (RedisModule_IsKeysPositionRequest(ctx)) {
1013993
return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys(ctx, argv, argc);

0 commit comments

Comments
 (0)