From 7755c8e028ae2d516121f00493b08d91822b820a Mon Sep 17 00:00:00 2001 From: Parth Patel <661497+parthpatel@users.noreply.github.com> Date: Thu, 11 Apr 2024 15:13:07 -0700 Subject: [PATCH] fixing a lua debugger bug that prevented use of 'server' for server.call invocations. * Tested it on local instance. This was originally part of https://github.com/valkey-io/valkey/pull/288 but I am pushing this separately, so that we can easily merge it into the upcoming release. ``` lua debugger> server ping ping "+PONG" lua debugger> redis ping ping "+PONG" ``` --- src/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eval.c b/src/eval.c index 587fb3b7af..0a97bb2536 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1677,7 +1677,7 @@ ldbLog(sdsnew(" next line of code.")); luaPushError(lua, "script aborted for user request"); luaError(lua); } else if (argc > 1 && - (!strcasecmp(argv[0],"r") || !strcasecmp(argv[0],"redis"))) { + (!strcasecmp(argv[0],"r") || !strcasecmp(argv[0],REDIS_API_NAME) || !strcasecmp(argv[0],SERVER_API_NAME))) { ldbRedis(lua,argv,argc); ldbSendLogs(); } else if ((!strcasecmp(argv[0],"p") || !strcasecmp(argv[0],"print"))) {