Skip to content

Commit 1051d93

Browse files
committed
Slave removal: scripting.c logs and other stuff fixed.
1 parent 61b7a17 commit 1051d93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/scripting.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ int luaRedisSetReplCommand(lua_State *lua) {
777777

778778
flags = lua_tonumber(lua,-1);
779779
if ((flags & ~(PROPAGATE_AOF|PROPAGATE_REPL)) != 0) {
780-
lua_pushstring(lua, "Invalid replication flags. Use REPL_AOF, REPL_SLAVE, REPL_ALL or REPL_NONE.");
780+
lua_pushstring(lua, "Invalid replication flags. Use REPL_AOF, REPL_REPLICA, REPL_ALL or REPL_NONE.");
781781
return lua_error(lua);
782782
}
783783
server.lua_repl = flags;
@@ -998,6 +998,10 @@ void scriptingInit(int setup) {
998998
lua_pushnumber(lua,PROPAGATE_REPL);
999999
lua_settable(lua,-3);
10001000

1001+
lua_pushstring(lua,"REPL_REPLICA");
1002+
lua_pushnumber(lua,PROPAGATE_REPL);
1003+
lua_settable(lua,-3);
1004+
10011005
lua_pushstring(lua,"REPL_ALL");
10021006
lua_pushnumber(lua,PROPAGATE_AOF|PROPAGATE_REPL);
10031007
lua_settable(lua,-3);
@@ -1484,7 +1488,7 @@ void scriptCommand(client *c) {
14841488
const char *help[] = {
14851489
"DEBUG (yes|sync|no) -- Set the debug mode for subsequent scripts executed.",
14861490
"EXISTS <sha1> [<sha1> ...] -- Return information about the existence of the scripts in the script cache.",
1487-
"FLUSH -- Flush the Lua scripts cache. Very dangerous on slaves.",
1491+
"FLUSH -- Flush the Lua scripts cache. Very dangerous on replicas.",
14881492
"KILL -- Kill the currently executing Lua script.",
14891493
"LOAD <script> -- Load a script into the scripts cache, without executing it.",
14901494
NULL

0 commit comments

Comments
 (0)