@cryptotaxi247 / netdata-1 / commits / 512e98a39

Remove feature flag and commented out code (#11774)

Stelios Fragkakis committed Nov 11, 2021 at 14:56 UTC 512e98a397b1bcb92e31ebe0d48167ebbca800d3
2 files changed -15
database/rrdhost.c
-2
@@ -748,9 +748,7 @@ int rrd_init(char *hostname, struct rrdhost_system_info *system_info) {
748 fatal("Failed to initialize dbengine");
749 }
750 #endif
751 -#ifdef ACLK_NEWARCH_DEVMODE
751 sql_aclk_sync_init();
753 -#endif
752 rrd_unlock();
753
754 web_client_api_v1_management_init();
database/sqlite/sqlite_aclk_chart.c
-13
@@ -866,19 +866,6 @@ void aclk_update_retention(struct aclk_database_worker_config *wc, struct aclk_d
866
867 if (likely(!rc && first_entry_t))
868 start_time = MIN(start_time, first_entry_t);
869 -
870 - // if (memory_mode == RRD_MEMORY_MODE_DBENGINE) {
871 - // int live = ((now - last_entry_t) < (RRDSET_MINIMUM_LIVE_COUNT * update_every));
872 - // (void) aclk_upd_dimension_event(
873 - // wc->uuid_str,
874 - // claim_id,
875 - // (uuid_t *)sqlite3_column_blob(res, 0),
876 - // (const char *)(const char *)sqlite3_column_text(res, 3),
877 - // (const char *)(const char *)sqlite3_column_text(res, 4),
878 - // (const char *)(const char *)sqlite3_column_text(res, 2),
879 - // first_entry_t,
880 - // live ? 0 : last_entry_t);
881 - // }
869 }
870 if (update_every) {
871 debug(D_ACLK_SYNC, "Update %s for %u oldest time = %ld", wc->host_guid, update_every, start_time);