diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-10-20 10:23:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 10:23:48 +0300 |
commit | 243c5cdfbc7e6fc87641f11833f7b5e5a1c683eb (patch) | |
tree | 76633b50dbaedb216440d48545ec7fa222a54847 /database/sqlite/sqlite_aclk.c | |
parent | fc32516192765a50730f1d07d6bc97e3ab10c08b (diff) |
Drop an unused index from aclk_alert table (#16242)
* Drop unused aclk_alert index
* Log messages only when compiled with NETDATA_INTERNAL_CHECKS
Diffstat (limited to 'database/sqlite/sqlite_aclk.c')
-rw-r--r-- | database/sqlite/sqlite_aclk.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/database/sqlite/sqlite_aclk.c b/database/sqlite/sqlite_aclk.c index effc2c1fa5..3d3caeff21 100644 --- a/database/sqlite/sqlite_aclk.c +++ b/database/sqlite/sqlite_aclk.c @@ -486,11 +486,6 @@ void sql_create_aclk_table(RRDHOST *host __maybe_unused, uuid_t *host_uuid __may if (unlikely(rc)) error_report("Failed to create ACLK alert table for host %s", host ? rrdhost_hostname(host) : host_guid); else { - snprintfz(sql, ACLK_SYNC_QUERY_SIZE -1, INDEX_ACLK_ALERT, uuid_str, uuid_str); - rc = db_execute(db_meta, sql); - if (unlikely(rc)) - error_report("Failed to create ACLK alert table index for host %s", host ? string2str(host->hostname) : host_guid); - snprintfz(sql, ACLK_SYNC_QUERY_SIZE -1, INDEX_ACLK_ALERT1, uuid_str, uuid_str); rc = db_execute(db_meta, sql); if (unlikely(rc)) |