Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2358de68
Commit
2358de68
authored
Jun 25, 2018
by
antirez
Browse files
Sentinel command renaming: use case sensitive hashing for the dict.
parent
a9c50088
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
2358de68
...
...
@@ -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 */
dictSds
Case
Hash
,
/* hash function */
NULL
,
/* key dup */
NULL
,
/* val dup */
dictSdsKeyCaseCompare
,
/* key compare */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment