mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Sentinel command renaming: use case sensitive hashing for the dict.
This commit is contained in:
parent
a9c5008895
commit
2358de6816
@ -387,6 +387,7 @@ void sentinelSimFailureCrash(void);
|
|||||||
/* ========================= Dictionary types =============================== */
|
/* ========================= Dictionary types =============================== */
|
||||||
|
|
||||||
uint64_t dictSdsHash(const void *key);
|
uint64_t dictSdsHash(const void *key);
|
||||||
|
uint64_t dictSdsCaseHash(const void *key);
|
||||||
int dictSdsKeyCompare(void *privdata, const void *key1, const void *key2);
|
int dictSdsKeyCompare(void *privdata, const void *key1, const void *key2);
|
||||||
int dictSdsKeyCaseCompare(void *privdata, const void *key1, const void *key2);
|
int dictSdsKeyCaseCompare(void *privdata, const void *key1, const void *key2);
|
||||||
void releaseSentinelRedisInstance(sentinelRedisInstance *ri);
|
void releaseSentinelRedisInstance(sentinelRedisInstance *ri);
|
||||||
@ -424,7 +425,7 @@ dictType leaderVotesDictType = {
|
|||||||
|
|
||||||
/* Instance renamed commands table. */
|
/* Instance renamed commands table. */
|
||||||
dictType renamedCommandsDictType = {
|
dictType renamedCommandsDictType = {
|
||||||
dictSdsHash, /* hash function */
|
dictSdsCaseHash, /* hash function */
|
||||||
NULL, /* key dup */
|
NULL, /* key dup */
|
||||||
NULL, /* val dup */
|
NULL, /* val dup */
|
||||||
dictSdsKeyCaseCompare, /* key compare */
|
dictSdsKeyCaseCompare, /* key compare */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user