mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
freeMemoryIfNeeded() small refactoring.
Related to issue #5686 and PR #5689.
This commit is contained in:
@ -2613,7 +2613,7 @@ int processCommand(client *c) {
|
||||
* condition, to avoid mixing the propagation of scripts with the
|
||||
* propagation of DELs due to eviction. */
|
||||
if (server.maxmemory && !server.lua_timedout) {
|
||||
int out_of_memory = freeMemoryIfNeeded() == C_ERR;
|
||||
int out_of_memory = freeMemoryIfNeededAndSafe() == C_ERR;
|
||||
/* freeMemoryIfNeeded may flush slave output buffers. This may result
|
||||
* into a slave, that may be the active client, to be freed. */
|
||||
if (server.current_client == NULL) return C_ERR;
|
||||
|
Reference in New Issue
Block a user