diff options
author | Madelyn Olson <34459052+madolson@users.noreply.github.com> | 2021-01-07 23:36:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 23:36:54 -0800 |
commit | 47579bdf5cccfbac1cf2b6e7e52218c5b9faed86 (patch) | |
tree | d446b07c138dd8151277dba04ea9a75d2e810a92 /src/expire.c | |
parent | b02780c41dbc5b28d265b5cf141c03c1a7383ef9 (diff) | |
download | redis-47579bdf5cccfbac1cf2b6e7e52218c5b9faed86.tar.gz |
Add support for client pause WRITE (#8170)
Implementation of client pause WRITE and client unpause
Diffstat (limited to 'src/expire.c')
-rw-r--r-- | src/expire.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expire.c b/src/expire.c index 5433f46ca..275a735a7 100644 --- a/src/expire.c +++ b/src/expire.c @@ -148,7 +148,7 @@ void activeExpireCycle(int type) { /* When clients are paused the dataset should be static not just from the * POV of clients not being able to write, but also from the POV of * expires and evictions of keys not being performed. */ - if (clientsArePaused()) return; + if (checkClientPauseTimeoutAndReturnIfPaused()) return; if (type == ACTIVE_EXPIRE_CYCLE_FAST) { /* Don't start a fast cycle if the previous cycle did not exit |