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
2e6f2850
Commit
2e6f2850
authored
Jul 27, 2017
by
Shaun Webb
Committed by
GitHub
Jul 27, 2017
Browse files
Fix typo
parent
dc997755
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
2e6f2850
...
...
@@ -650,7 +650,7 @@ unsigned int keyHashSlot(char *key, int keylen) {
for
(
e
=
s
+
1
;
e
<
keylen
;
e
++
)
if
(
key
[
e
]
==
'}'
)
break
;
/* No '}' or nothing betwee
e
n {} ? Hash the whole key. */
/* No '}' or nothing between {} ? Hash the whole key. */
if
(
e
==
keylen
||
e
==
s
+
1
)
return
crc16
(
key
,
keylen
)
&
0x3FFF
;
/* If we are here there is both a { and a } on its right. Hash
...
...
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