From ee1cef189fff604f165b2d20a307545840de944e Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 4 Oct 2019 12:00:41 +0200 Subject: [PATCH] Minor aesthetic changes to #6419. --- src/scripting.c | 2 +- src/server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting.c b/src/scripting.c index 8ce090e9c..ec95eb256 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -1411,7 +1411,7 @@ void luaMaskCountHook(lua_State *lua, lua_Debug *ar) { serverLog(LL_WARNING, "Lua slow script detected: still in execution after %lld milliseconds. " "You can try killing the script using the SCRIPT KILL command. " - "script SHA is: %s", + "Script SHA1 is: %s", elapsed, server.lua_cur_script); server.lua_timedout = 1; /* Once the script timeouts we reenter the event loop to permit others diff --git a/src/server.h b/src/server.h index f24c428ca..2e5749907 100644 --- a/src/server.h +++ b/src/server.h @@ -1389,7 +1389,7 @@ struct redisServer { lua_State *lua; /* The Lua interpreter. We use just one for all clients */ client *lua_client; /* The "fake client" to query Redis from Lua */ client *lua_caller; /* The client running EVAL right now, or NULL */ - char* lua_cur_script; /* The current script right now, or NULL */ + char* lua_cur_script; /* SHA1 of the script currently running, or NULL */ dict *lua_scripts; /* A dictionary of SHA1 -> Lua scripts */ unsigned long long lua_scripts_mem; /* Cached scripts' memory + oh */ mstime_t lua_time_limit; /* Script timeout in milliseconds */