diff options
Diffstat (limited to 'src/evict.c')
-rw-r--r-- | src/evict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evict.c b/src/evict.c index a5821a463..316edf606 100644 --- a/src/evict.c +++ b/src/evict.c @@ -481,7 +481,7 @@ void startEvictionTimeProc(void) { static int isSafeToPerformEvictions(void) { /* - There must be no script in timeout condition. * - Nor we are loading data right now. */ - if (scriptIsTimedout() || server.loading) return 0; + if (isInsideYieldingLongCommand() || server.loading) return 0; /* By default replicas should ignore maxmemory * and just be masters exact copies. */ |