summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-06-25 17:31:57 +0200
committerantirez <antirez@gmail.com>2018-06-25 17:31:57 +0200
commit2358de681670f6f2d64d1860765573c43c7f1606 (patch)
treedcaef2b9559a70ec11bc5f4c9bac9b7dfc0fbce8
parenta9c500889533aeb6a8c828f146acda9798164813 (diff)
downloadredis-2358de681670f6f2d64d1860765573c43c7f1606.tar.gz
Sentinel command renaming: use case sensitive hashing for the dict.
-rw-r--r--src/sentinel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 7b8d85c47..de49cdebb 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -387,6 +387,7 @@ void sentinelSimFailureCrash(void);
/* ========================= Dictionary types =============================== */
uint64_t dictSdsHash(const void *key);
+uint64_t dictSdsCaseHash(const void *key);
int dictSdsKeyCompare(void *privdata, const void *key1, const void *key2);
int dictSdsKeyCaseCompare(void *privdata, const void *key1, const void *key2);
void releaseSentinelRedisInstance(sentinelRedisInstance *ri);
@@ -424,7 +425,7 @@ dictType leaderVotesDictType = {
/* Instance renamed commands table. */
dictType renamedCommandsDictType = {
- dictSdsHash, /* hash function */
+ dictSdsCaseHash, /* hash function */
NULL, /* key dup */
NULL, /* val dup */
dictSdsKeyCaseCompare, /* key compare */