WAIT command: synchronous replication for Redis.

This commit is contained in:
antirez
2013-12-04 15:52:20 +01:00
parent c2f305545a
commit c5618e7fdd
5 changed files with 177 additions and 4 deletions

View File

@ -114,6 +114,7 @@ redisClient *createClient(int fd) {
c->bpop.target = NULL;
c->bpop.numreplicas = 0;
c->bpop.reploffset = 0;
c->woff = 0;
c->watched_keys = listCreate();
c->pubsub_channels = dictCreate(&setDictType,NULL);
c->pubsub_patterns = listCreate();