diff options
author | antirez <antirez@gmail.com> | 2018-06-15 13:14:57 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-06-18 12:31:10 +0200 |
commit | e9bb30fd859ed4e9e3e6434207dedbc251086858 (patch) | |
tree | 0ac8972fefe6911dee8c7376e14c611fcc105e1c /src/sentinel.c | |
parent | fd0ee469ab165d0e005e9fe1fca1c4f5c604cd56 (diff) | |
download | redis-new-keyspace.tar.gz |
Experimental: new keyspace and expire algorithm.new-keyspace
This is an alpha quality implementation of a new keyspace representation
and a new expire algorithm for Redis.
This work is described here:
https://gist.github.com/antirez/b2eb293819666ee104c7fcad71986eb7
Diffstat (limited to 'src/sentinel.c')
-rw-r--r-- | src/sentinel.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sentinel.c b/src/sentinel.c index 92ea75436..95b4ff8e4 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -402,7 +402,8 @@ void dictInstancesValDestructor (void *privdata, void *obj) { * also used for: sentinelRedisInstance->sentinels dictionary that maps * sentinels ip:port to last seen time in Pub/Sub hello message. */ dictType instancesDictType = { - dictSdsHash, /* hash function */ + dictSdsHash, /* lookup hash function */ + dictSdsHash, /* store hash function */ NULL, /* key dup */ NULL, /* val dup */ dictSdsKeyCompare, /* key compare */ @@ -415,7 +416,8 @@ dictType instancesDictType = { * This is useful into sentinelGetObjectiveLeader() function in order to * count the votes and understand who is the leader. */ dictType leaderVotesDictType = { - dictSdsHash, /* hash function */ + dictSdsHash, /* lookup hash function */ + dictSdsHash, /* stored hash function */ NULL, /* key dup */ NULL, /* val dup */ dictSdsKeyCompare, /* key compare */ @@ -425,10 +427,12 @@ dictType leaderVotesDictType = { /* Instance renamed commands table. */ dictType renamedCommandsDictType = { - dictSdsCaseHash, /* hash function */ + dictSdsCaseHash, /* lookup hash function */ + dictSdsCaseHash, /* stored hash function */ NULL, /* key dup */ NULL, /* val dup */ - dictSdsKeyCaseCompare, /* key compare */ + dictSdsKeyCaseCompare, /* lookup key compare */ + dictSdsKeyCaseCompare, /* stored key compare */ dictSdsDestructor, /* key destructor */ dictSdsDestructor /* val destructor */ }; |