Fix loading of RDB files lua AUX fields when the script is defined.

In the case of slaves loading the RDB from master, or in other similar
cases, the script is already defined, and the function registering the
script should not fail in the assert() call.
This commit is contained in:
antirez
2017-12-01 16:01:10 +01:00
parent cb2f001f52
commit 1198f7ceff
3 changed files with 11 additions and 5 deletions

View File

@ -1781,7 +1781,7 @@ void scriptingInit(int setup);
int ldbRemoveChild(pid_t pid);
void ldbKillForkedSessions(void);
int ldbPendingChildren(void);
int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body);
int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body, int allow_dup);
/* Blocked clients */
void processUnblockedClients(void);