mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Remove trailing spaces from scripting.c
This commit is contained in:
parent
01e3f9ba1d
commit
4ddc77041f
@ -250,7 +250,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
|
|||||||
argv[j] = createStringObject(obj_s, obj_len);
|
argv[j] = createStringObject(obj_s, obj_len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if one of the arguments passed by the Lua script
|
/* Check if one of the arguments passed by the Lua script
|
||||||
* is not a string or an integer (lua_isstring() return true for
|
* is not a string or an integer (lua_isstring() return true for
|
||||||
* integers as well). */
|
* integers as well). */
|
||||||
@ -532,7 +532,7 @@ void luaLoadLibraries(lua_State *lua) {
|
|||||||
luaLoadLib(lua, LUA_TABLIBNAME, luaopen_table);
|
luaLoadLib(lua, LUA_TABLIBNAME, luaopen_table);
|
||||||
luaLoadLib(lua, LUA_STRLIBNAME, luaopen_string);
|
luaLoadLib(lua, LUA_STRLIBNAME, luaopen_string);
|
||||||
luaLoadLib(lua, LUA_MATHLIBNAME, luaopen_math);
|
luaLoadLib(lua, LUA_MATHLIBNAME, luaopen_math);
|
||||||
luaLoadLib(lua, LUA_DBLIBNAME, luaopen_debug);
|
luaLoadLib(lua, LUA_DBLIBNAME, luaopen_debug);
|
||||||
luaLoadLib(lua, "cjson", luaopen_cjson);
|
luaLoadLib(lua, "cjson", luaopen_cjson);
|
||||||
luaLoadLib(lua, "struct", luaopen_struct);
|
luaLoadLib(lua, "struct", luaopen_struct);
|
||||||
luaLoadLib(lua, "cmsgpack", luaopen_cmsgpack);
|
luaLoadLib(lua, "cmsgpack", luaopen_cmsgpack);
|
||||||
@ -954,7 +954,7 @@ void evalGenericCommand(redisClient *c, int evalsha) {
|
|||||||
|
|
||||||
/* Select the right DB in the context of the Lua client */
|
/* Select the right DB in the context of the Lua client */
|
||||||
selectDb(server.lua_client,c->db->id);
|
selectDb(server.lua_client,c->db->id);
|
||||||
|
|
||||||
/* Set a hook in order to be able to stop the script execution if it
|
/* Set a hook in order to be able to stop the script execution if it
|
||||||
* is running for too much time.
|
* is running for too much time.
|
||||||
* We set the hook only if the time limit is enabled as the hook will
|
* We set the hook only if the time limit is enabled as the hook will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user