first attempt to non blocking implementation of slave replication and SYNC bulk data download. Never compiled so far...

This commit is contained in:
antirez
2010-11-04 17:29:53 +01:00
parent 4d7e125519
commit f4aa600b99
4 changed files with 117 additions and 44 deletions

View File

@ -467,6 +467,7 @@ void freeClient(redisClient *c) {
/* Case 2: we lost the connection with the master. */
if (c->flags & REDIS_MASTER) {
server.master = NULL;
/* FIXME */
server.replstate = REDIS_REPL_CONNECT;
/* Since we lost the connection with the master, we should also
* close the connection with all our slaves if we have any, so