@@ -777,7 +777,7 @@ int luaRedisSetReplCommand(lua_State *lua) {
777
777
778
778
flags = lua_tonumber (lua ,-1 );
779
779
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." );
781
781
return lua_error (lua );
782
782
}
783
783
server .lua_repl = flags ;
@@ -998,6 +998,10 @@ void scriptingInit(int setup) {
998
998
lua_pushnumber (lua ,PROPAGATE_REPL );
999
999
lua_settable (lua ,-3 );
1000
1000
1001
+ lua_pushstring (lua ,"REPL_REPLICA" );
1002
+ lua_pushnumber (lua ,PROPAGATE_REPL );
1003
+ lua_settable (lua ,-3 );
1004
+
1001
1005
lua_pushstring (lua ,"REPL_ALL" );
1002
1006
lua_pushnumber (lua ,PROPAGATE_AOF |PROPAGATE_REPL );
1003
1007
lua_settable (lua ,-3 );
@@ -1484,7 +1488,7 @@ void scriptCommand(client *c) {
1484
1488
const char * help [] = {
1485
1489
"DEBUG (yes|sync|no) -- Set the debug mode for subsequent scripts executed." ,
1486
1490
"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 ." ,
1488
1492
"KILL -- Kill the currently executing Lua script." ,
1489
1493
"LOAD <script> -- Load a script into the scripts cache, without executing it." ,
1490
1494
NULL
0 commit comments