@@ -2426,7 +2426,7 @@ static int autosize_reload_preflight(conf_t *config)
24262426 return 0 ;
24272427 }
24282428
2429- if (!config -> do_audit_db_sizing ) {
2429+ if (!config -> do_auto_db_sizing ) {
24302430 if (state .recommended_pages > state .map_pages )
24312431 msg (LOG_WARNING ,
24322432 "db_max_size may be too small for safe reload: "
@@ -2914,21 +2914,21 @@ static void check_db_size(const conf_t *config)
29142914 state .allocated_percent );
29152915 if (state .allocated_percent > TRUST_DB_RELOAD_HIGHWATER_PERCENT &&
29162916 state .allocated_percent > state .active_percent ) {
2917- int priority = config -> do_audit_db_sizing ? LOG_INFO :
2917+ int priority = config -> do_auto_db_sizing ? LOG_INFO :
29182918 LOG_WARNING ;
29192919
29202920 msg (priority ,
29212921 "Trust database LMDB map high-water at %lu%% capacity "
29222922 "while active DB pages are at %lu%%" ,
29232923 state .allocated_percent , state .active_percent );
2924- if (!config -> do_audit_db_sizing )
2924+ if (!config -> do_auto_db_sizing )
29252925 log_lmdb_state (LOG_WARNING ,
29262926 "trust database size check" , 0 );
29272927 }
29282928
29292929 target_mb = autosize_effective_target_mb (& state ,
29302930 AUTOSIZE_LIVE_INSPECTION );
2931- if (config -> do_audit_db_sizing ) {
2931+ if (config -> do_auto_db_sizing ) {
29322932 if (target_mb > config -> db_max_size ) {
29332933 if (state .active_target_pages > state .map_pages )
29342934 msg (LOG_INFO ,
@@ -2993,7 +2993,7 @@ static void database_resize_report(FILE *f, const conf_t *config)
29932993 unsigned int target_mb = 0 ;
29942994 int rc ;
29952995
2996- if (config == NULL || config -> do_audit_db_sizing )
2996+ if (config == NULL || config -> do_auto_db_sizing )
29972997 return ;
29982998
29992999 rc = read_live_lmdb_sizing_state (& state );
@@ -4104,7 +4104,7 @@ static int create_database_for_generation(struct trust_db_generation *gen,
41044104 rc == WRITE_DB_MAP_FULL ? MDB_MAP_FULL : 0 );
41054105
41064106 if (rc == WRITE_DB_MAP_FULL &&
4107- config -> do_audit_db_sizing && retries == 0 ) {
4107+ config -> do_auto_db_sizing && retries == 0 ) {
41084108 int grown ;
41094109
41104110 lock_update_thread ();
@@ -4650,7 +4650,7 @@ int init_database(conf_t *config)
46504650 return 1 ;
46514651
46524652 /* One-shot utilisation-driven sizing */
4653- if (config -> do_audit_db_sizing &&
4653+ if (config -> do_auto_db_sizing &&
46544654 autosize_database (config , AUTOSIZE_STARTUP_INSPECTION ))
46554655 msg (LOG_INFO , "autosize: map size recomputed to %u MiB" ,
46564656 config -> db_max_size );
@@ -5528,7 +5528,7 @@ static int do_reload_db(conf_t *config)
55285528 backend_close ();
55295529
55305530 /* One-shot utilisation-driven sizing */
5531- if (config -> do_audit_db_sizing &&
5531+ if (config -> do_auto_db_sizing &&
55325532 autosize_database (config , AUTOSIZE_LIVE_INSPECTION )) {
55335533 msg (LOG_INFO , "autosize: map size recomputed to %u MiB" ,
55345534 config -> db_max_size );
0 commit comments