Skip to content

Commit

Permalink
fixed for HT resize check 32bits overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Apr 29, 2009
1 parent 5a7c647 commit dec423d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#define REDIS_VERSION "0.091"
#define REDIS_VERSION "0.100"

#include "fmacros.h"

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dec423d

Please sign in to comment.