mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
fix int overflow problem in freeMemoryIfNeeded
This commit is contained in:
parent
3150c67244
commit
4630da375c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user