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
acb933a7
Commit
acb933a7
authored
Feb 18, 2015
by
Sisir Koppaka
Browse files
rehashing.c: Fix compile error originating from SPOP rewrite
parent
cfe5eaae
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/hashtable/rehashing.c
View file @
acb933a7
...
@@ -73,7 +73,7 @@ void stressGetKeys(dict *d, int times) {
...
@@ -73,7 +73,7 @@ void stressGetKeys(dict *d, int times) {
dictEntry
**
des
=
zmalloc
(
sizeof
(
dictEntry
*
)
*
dictSize
(
d
));
dictEntry
**
des
=
zmalloc
(
sizeof
(
dictEntry
*
)
*
dictSize
(
d
));
for
(
j
=
0
;
j
<
times
;
j
++
)
{
for
(
j
=
0
;
j
<
times
;
j
++
)
{
int
requested
=
rand
()
%
(
dictSize
(
d
)
+
1
);
int
requested
=
rand
()
%
(
dictSize
(
d
)
+
1
);
int
returned
=
dictGet
Rand
omKeys
(
d
,
des
,
requested
);
int
returned
=
dictGet
S
om
e
Keys
(
d
,
des
,
requested
);
if
(
requested
!=
returned
)
{
if
(
requested
!=
returned
)
{
printf
(
"*** ERROR! Req: %d, Ret: %d
\n
"
,
requested
,
returned
);
printf
(
"*** ERROR! Req: %d, Ret: %d
\n
"
,
requested
,
returned
);
exit
(
1
);
exit
(
1
);
...
...
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