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
3508b9c4
Unverified
Commit
3508b9c4
authored
Nov 28, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 28, 2017
Browse files
Merge pull request #4170 from TehWebby/patch-2
Fix typo
parents
4e55df4b
2e6f2850
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
3508b9c4
...
@@ -653,7 +653,7 @@ unsigned int keyHashSlot(char *key, int keylen) {
...
@@ -653,7 +653,7 @@ unsigned int keyHashSlot(char *key, int keylen) {
for
(
e
=
s
+
1
;
e
<
keylen
;
e
++
)
for
(
e
=
s
+
1
;
e
<
keylen
;
e
++
)
if
(
key
[
e
]
==
'}'
)
break
;
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
(
e
==
keylen
||
e
==
s
+
1
)
return
crc16
(
key
,
keylen
)
&
0x3FFF
;
/* If we are here there is both a { and a } on its right. Hash
/* 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