diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2021-11-11 14:56:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 14:56:55 +0200 |
commit | 512e98a397b1bcb92e31ebe0d48167ebbca800d3 (patch) | |
tree | 03a5859d6294b01b5ec41e306660d28fa75c5b5b /database | |
parent | 51869f7a0677dc1e6e3a9ff16aedc78b67e59739 (diff) |
Remove feature flag and commented out code (#11774)
Diffstat (limited to 'database')
-rw-r--r-- | database/rrdhost.c | 2 | ||||
-rw-r--r-- | database/sqlite/sqlite_aclk_chart.c | 13 |
2 files changed, 0 insertions, 15 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c index b28db1e3e4..13f4259be9 100644 --- a/database/rrdhost.c +++ b/database/rrdhost.c @@ -748,9 +748,7 @@ int rrd_init(char *hostname, struct rrdhost_system_info *system_info) { fatal("Failed to initialize dbengine"); } #endif -#ifdef ACLK_NEWARCH_DEVMODE sql_aclk_sync_init(); -#endif rrd_unlock(); web_client_api_v1_management_init(); diff --git a/database/sqlite/sqlite_aclk_chart.c b/database/sqlite/sqlite_aclk_chart.c index 21d6c52d3f..dc1b02205f 100644 --- a/database/sqlite/sqlite_aclk_chart.c +++ b/database/sqlite/sqlite_aclk_chart.c @@ -866,19 +866,6 @@ void aclk_update_retention(struct aclk_database_worker_config *wc, struct aclk_d if (likely(!rc && first_entry_t)) start_time = MIN(start_time, first_entry_t); - - // if (memory_mode == RRD_MEMORY_MODE_DBENGINE) { - // int live = ((now - last_entry_t) < (RRDSET_MINIMUM_LIVE_COUNT * update_every)); - // (void) aclk_upd_dimension_event( - // wc->uuid_str, - // claim_id, - // (uuid_t *)sqlite3_column_blob(res, 0), - // (const char *)(const char *)sqlite3_column_text(res, 3), - // (const char *)(const char *)sqlite3_column_text(res, 4), - // (const char *)(const char *)sqlite3_column_text(res, 2), - // first_entry_t, - // live ? 0 : last_entry_t); - // } } if (update_every) { debug(D_ACLK_SYNC, "Update %s for %u oldest time = %ld", wc->host_guid, update_every, start_time); |