Add config options for max-bulk-len and max-querybuf-len mainly to support RESTORE of large keys

This commit is contained in:
Oran Agra
2017-12-29 12:43:48 +02:00
committed by antirez
parent aefa9caacf
commit ff2e628f4e
4 changed files with 16 additions and 1 deletions

View File

@ -1374,6 +1374,7 @@ void initServerConfig(void) {
server.active_defrag_threshold_upper = CONFIG_DEFAULT_DEFRAG_THRESHOLD_UPPER;
server.active_defrag_cycle_min = CONFIG_DEFAULT_DEFRAG_CYCLE_MIN;
server.active_defrag_cycle_max = CONFIG_DEFAULT_DEFRAG_CYCLE_MAX;
server.max_bulk_len = CONFIG_DEFAULT_MAX_BULK_LEN;
server.client_max_querybuf_len = PROTO_MAX_QUERYBUF_LEN;
server.saveparams = NULL;
server.loading = 0;