init client pause value in more appropriate place
@@ -2797,10 +2797,6 @@ void initServerConfig(void) {
* Redis 5. However it is possible to revert it via redis.conf. */
server.lua_always_replicate_commands = 1;
- /* Client Pause related */
- server.client_pause_type = CLIENT_PAUSE_OFF;
- server.client_pause_end_time = 0;
-
initConfigValues();
}
@@ -3210,7 +3206,8 @@ void initServer(void) {
server.ready_keys = listCreate();
server.clients_waiting_acks = listCreate();
server.get_ack_from_slaves = 0;
- server.client_pause_type = 0;
+ server.client_pause_type = CLIENT_PAUSE_OFF;
+ server.client_pause_end_time = 0;
server.paused_clients = listCreate();
server.events_processed_while_blocked = 0;
server.system_memory_size = zmalloc_get_memory_size();
