diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-01-11 14:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 14:17:02 +0200 |
commit | bead543ea52e51cf73f7e5b27de53197801399a7 (patch) | |
tree | c049d0aaeaf0415fd34e62c0d845caa38b82ead2 /daemon/service.c | |
parent | df587c73eda1221c5d133e65fe170a2d301eb236 (diff) |
Name storage engine variables consistently. (#16753)
* Consistent naming of STORAGE_INSTANCE instances.
Replace usages of `db_instance` and `instance` with
`si`.
* Rename array `storage_metrics_groups[tier]` to `smg[tier]`
* Rename db_metric_handle to smh
* Rename instances of `storage_engine_query_handle` to `seqh`.
* Rename instances of STORAGE_ENGINE_BACKEND to `seb`.
* Rename instances of STORAGE_COLLECT_HANDLE to `sch`.
Diffstat (limited to 'daemon/service.c')
-rw-r--r-- | daemon/service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/service.c b/daemon/service.c index 8a65de66c1..3f47a8fa27 100644 --- a/daemon/service.c +++ b/daemon/service.c @@ -52,13 +52,13 @@ static void svc_rrddim_obsolete_to_archive(RRDDIM *rd) { size_t tiers_available = 0, tiers_said_no_retention = 0; for(size_t tier = 0; tier < storage_tiers ;tier++) { - if(rd->tiers[tier].db_collection_handle) { + if(rd->tiers[tier].sch) { tiers_available++; - if(storage_engine_store_finalize(rd->tiers[tier].db_collection_handle)) + if(storage_engine_store_finalize(rd->tiers[tier].sch)) tiers_said_no_retention++; - rd->tiers[tier].db_collection_handle = NULL; + rd->tiers[tier].sch = NULL; } } @@ -275,7 +275,7 @@ restart_after_removal: if (rrdhost_option_check(host, RRDHOST_OPTION_DELETE_ORPHAN_HOST) /* don't delete multi-host DB host files */ - && !(host->rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE && is_storage_engine_shared(host->db[0].instance)) + && !(host->rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE && is_storage_engine_shared(host->db[0].si)) ) { worker_is_busy(WORKER_JOB_DELETE_HOST_CHARTS); rrdhost_delete_charts(host); |