Skip to content

Commit

Permalink
fixing a lua debugger bug that prevented use of 'server' for server.c…
Browse files Browse the repository at this point in the history
…all invocations.

* Tested it on local instance. This was originally part of valkey-io#288 but I am pushing this separately, so that we can easily merge it into the upcoming release.

```
lua debugger> server ping
<redis> ping
<reply> "+PONG"
lua debugger> redis ping
<redis> ping
<reply> "+PONG"
```

Signed-off-by: Parth Patel <661497+parthpatel@users.noreply.github.com>
  • Loading branch information
parthpatel committed Apr 11, 2024
1 parent c36f67a commit 391fc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.c
Expand Up @@ -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"))) {
Expand Down

0 comments on commit 391fc3b

Please sign in to comment.