Commit 4630da37 authored by huijing.whj's avatar huijing.whj Committed by antirez
Browse files

fix int overflow problem in freeMemoryIfNeeded

parent 3150c672
......@@ -404,7 +404,7 @@ int freeMemoryIfNeeded(void) {
latencyStartMonitor(latency);
while (mem_freed < mem_tofree) {
int j, k, i, keys_freed = 0;
static int next_db = 0;
static unsigned int next_db = 0;
sds bestkey = NULL;
int bestdbid;
redisDb *db;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment