take a hashslot -> keys index, will be used for cluster rehasing

This commit is contained in:
antirez
2011-04-28 19:00:33 +02:00
parent 45b0f6fb14
commit c772d9c6e7
4 changed files with 73 additions and 29 deletions

View File

@ -202,6 +202,7 @@ void clusterInit(void) {
}
if (aeCreateFileEvent(server.el, server.cfd, AE_READABLE,
clusterAcceptHandler, NULL) == AE_ERR) oom("creating file event");
server.cluster.slots_to_keys = zslCreate();
}
/* -----------------------------------------------------------------------------