Checks if the current client pause has elapsed and unpause clients * if it has. Also returns true if clients are now paused and false * otherwise. */
| 4037 | * if it has. Also returns true if clients are now paused and false |
| 4038 | * otherwise. */ |
| 4039 | int checkClientPauseTimeoutAndReturnIfPaused(void) { |
| 4040 | if (!areClientsPaused()) |
| 4041 | return 0; |
| 4042 | if (g_pserver->client_pause_end_time < g_pserver->mstime) { |
| 4043 | unpauseClients(); |
| 4044 | } |
| 4045 | return areClientsPaused(); |
| 4046 | } |
| 4047 | |
| 4048 | /* This function is called by Redis in order to process a few events from |
| 4049 | * time to time while blocked into some not interruptible operation. |
no test coverage detected