Cluster: basic data structures for nodes black list.

This commit is contained in:
antirez
2013-11-29 17:37:06 +01:00
parent 3db825fde4
commit 8f18345ef0
4 changed files with 16 additions and 0 deletions

View File

@ -583,6 +583,18 @@ dictType clusterNodesDictType = {
NULL /* val destructor */
};
/* Cluster re-addition blacklist. This maps node IDs to the time
* we can re-add this node. The goal is to avoid readding a removed
* node for some time. */
dictType clusterNodesBlackListDictType = {
dictSdsCaseHash, /* hash function */
NULL, /* key dup */
NULL, /* val dup */
dictSdsKeyCaseCompare, /* key compare */
dictSdsDestructor, /* key destructor */
NULL /* val destructor */
};
/* Migrate cache dict type. */
dictType migrateCacheDictType = {
dictSdsHash, /* hash function */