configurized loading_process_events_interval_bytes

Former-commit-id: c176ea73664a182af9caacda9d489fb2b344b2de
This commit is contained in:
christianEQ 2021-01-11 18:55:56 +00:00 committed by John Sully
parent cbc331be74
commit 4fa25cbc57
2 changed files with 2 additions and 1 deletions

View File

@ -2465,6 +2465,8 @@ standardConfig configs[] = {
/* Unsigned int configs */
createUIntConfig("maxclients", NULL, MODIFIABLE_CONFIG, 1, UINT_MAX, g_pserver->maxclients, 10000, INTEGER_CONFIG, NULL, updateMaxclients),
/* Long configs */
createLongConfig("loading-process-events-interval-bytes", NULL, MODIFIABLE_CONFIG, 0, LONG_MAX, g_pserver->loading_process_events_interval_bytes, 2*1024*1024, MEMORY_CONFIG, NULL, NULL),
/* Unsigned Long configs */
createULongConfig("active-defrag-max-scan-fields", NULL, MODIFIABLE_CONFIG, 1, LONG_MAX, cserver.active_defrag_max_scan_fields, 1000, INTEGER_CONFIG, NULL, NULL), /* Default: keys with more than 1000 fields will be processed separately */
createULongConfig("slowlog-max-len", NULL, MODIFIABLE_CONFIG, 0, LONG_MAX, g_pserver->slowlog_max_len, 128, INTEGER_CONFIG, NULL, NULL),

View File

@ -2547,7 +2547,6 @@ void initServerConfig(void) {
g_pserver->cluster_configfile = zstrdup(CONFIG_DEFAULT_CLUSTER_CONFIG_FILE);
g_pserver->migrate_cached_sockets = dictCreate(&migrateCacheDictType,NULL);
g_pserver->next_client_id = 1; /* Client IDs, start from 1 .*/
g_pserver->loading_process_events_interval_bytes = (1024*1024*2);
g_pserver->lruclock = getLRUClock();
resetServerSaveParams();