diff --git a/src/config.cpp b/src/config.cpp index cf8a31bcb..5a670afac 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -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), diff --git a/src/server.cpp b/src/server.cpp index 4f126f947..fa2bc8d28 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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();