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
dec423d9
Commit
dec423d9
authored
Apr 29, 2009
by
antirez
Browse files
fixed for HT resize check 32bits overflow
parent
5a7c647e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
dec423d9
...
...
@@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#define REDIS_VERSION "0.
091
"
#define REDIS_VERSION "0.
100
"
#include "fmacros.h"
...
...
@@ -664,7 +664,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
/* If the percentage of used slots in the HT reaches REDIS_HT_MINFILL
* we resize the hash table to save memory */
for
(
j
=
0
;
j
<
server
.
dbnum
;
j
++
)
{
int
size
,
used
,
vkeys
;
long
long
size
,
used
,
vkeys
;
size
=
dictSlots
(
server
.
db
[
j
].
dict
);
used
=
dictSize
(
server
.
db
[
j
].
dict
);
...
...
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