@@ -137,9 +137,6 @@ int RedisAI_TensorGet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
137
137
*/
138
138
int RedisAI_ModelSet_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
139
139
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" );
143
140
return ModelSetCommand (ctx , argv , argc );
144
141
}
145
142
@@ -565,16 +562,9 @@ int RedisAI_ModelScan_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
565
562
*/
566
563
int RedisAI_ModelRun_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
567
564
if (IsEnterprise ()) {
568
- RedisModule_Log (ctx , "warning" ,
569
- "AI.MODELRUN command is deprecated and cannot be used in "
570
- "enterprise cluster, use AI.MODELEXECUTE instead" );
571
565
return RedisModule_ReplyWithError (
572
566
ctx , "ERR AI.MODELRUN command is deprecated and cannot be used in "
573
567
"enterprise cluster, use AI.MODELEXECUTE instead" );
574
- } else {
575
- RedisModule_Log (ctx , "warning" ,
576
- "AI.MODELRUN command is deprecated and will"
577
- " not be available in future version, you can use AI.MODELEXECUTE instead" );
578
568
}
579
569
if (RedisModule_IsKeysPositionRequest (ctx )) {
580
570
return RedisAI_ModelRun_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
@@ -711,9 +701,6 @@ int RedisAI_ScriptDel_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
711
701
* AI.SCRIPTSET script_key device [TAG tag] SOURCE script_source
712
702
*/
713
703
int RedisAI_ScriptSet_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
714
- RedisModule_Log (ctx , "warning" ,
715
- "AI.SCRIPTSET command is deprecated and will"
716
- " not be available in future version, you can use AI.SCRIPTSTORE instead" );
717
704
return ScriptSetCommand (ctx , argv , argc );
718
705
}
719
706
@@ -960,16 +947,9 @@ int RedisAI_Config_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, i
960
947
*/
961
948
int RedisAI_DagRun_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
962
949
if (IsEnterprise ()) {
963
- RedisModule_Log (ctx , "warning" ,
964
- "AI.DAGRUN command is deprecated and cannot be used in "
965
- "enterprise cluster, use AI.DAGEXECUTE instead" );
966
950
return RedisModule_ReplyWithError (
967
951
ctx , "ERR AI.DAGRUN command is deprecated and cannot be used in "
968
952
"enterprise cluster, use AI.DAGEXECUTE instead" );
969
- } else {
970
- RedisModule_Log (ctx , "warning" ,
971
- "AI.DAGRUN command is deprecated and will"
972
- " not be available in future version, you can use AI.DAGEXECUTE instead" );
973
953
}
974
954
if (RedisModule_IsKeysPositionRequest (ctx )) {
975
955
return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
@@ -1005,16 +985,9 @@ int RedisAI_DagExecute_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **arg
1005
985
*/
1006
986
int RedisAI_DagRunRO_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
1007
987
if (IsEnterprise ()) {
1008
- RedisModule_Log (ctx , "warning" ,
1009
- "AI.DAGRUN_RO command is deprecated and cannot be used in "
1010
- "enterprise cluster, use AI.DAGEXECUTE_RO instead" );
1011
988
return RedisModule_ReplyWithError (
1012
989
ctx , "ERR AI.DAGRUN_RO command is deprecated and cannot be used in "
1013
- "enterprise cluster, use AI.DAGEXECUTE instead" );
1014
- } else {
1015
- RedisModule_Log (ctx , "warning" ,
1016
- "AI.DAGRUN_RO command is deprecated and will"
1017
- " not be available in future version, you can use AI.DAGEXECUTE instead" );
990
+ "enterprise cluster, use AI.DAGEXECUTE_RO instead" );
1018
991
}
1019
992
if (RedisModule_IsKeysPositionRequest (ctx )) {
1020
993
return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
0 commit comments