You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix RANDOMKEY infinite loop during CLIENT PAUSE (#1850)
When the `client pause write` is set and all the keys in the server
are expired keys, executing the `randomkey` command will lead to an
infinite loop.
The reason is that expired keys are not deleted in this case. Limit
the number of tries and return an expired key after the max number
tries in this case.
Closes#1848.
---------
Signed-off-by: li-benson <[email protected]>
Signed-off-by: youngmore <[email protected]>
Signed-off-by: Viktor Söderqvist <[email protected]>
Co-authored-by: youngmore <[email protected]>
Co-authored-by: Viktor Söderqvist <[email protected]>
0 commit comments