diff options
Diffstat (limited to 'database/sqlite/sqlite_health.c')
-rw-r--r-- | database/sqlite/sqlite_health.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/database/sqlite/sqlite_health.c b/database/sqlite/sqlite_health.c index 2363fe201f..c504cf70a7 100644 --- a/database/sqlite/sqlite_health.c +++ b/database/sqlite/sqlite_health.c @@ -16,7 +16,7 @@ void sql_health_alarm_log_update(RRDHOST *host, ALARM_ENTRY *ae) { int rc; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("HEALTH [%s]: Database has not been initialized", rrdhost_hostname(host)); return; } @@ -98,7 +98,7 @@ void sql_health_alarm_log_insert(RRDHOST *host, ALARM_ENTRY *ae) { uint64_t health_log_id = 0; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("HEALTH [%s]: Database has not been initialized", rrdhost_hostname(host)); return; } @@ -368,7 +368,7 @@ void sql_health_alarm_log_count(RRDHOST *host) { int rc; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("Database has not been initialized"); return; } @@ -407,7 +407,7 @@ void sql_health_alarm_log_cleanup_not_claimed(RRDHOST *host) { char command[MAX_HEALTH_SQL_SIZE + 1]; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("Database has not been initialized"); return; } @@ -468,7 +468,7 @@ void sql_health_alarm_log_cleanup_claimed(RRDHOST *host) { char command[MAX_HEALTH_SQL_SIZE + 1]; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("Database has not been initialized"); return; } @@ -784,7 +784,7 @@ void sql_health_alarm_log_load(RRDHOST *host) { host->health.health_log_entries_written = 0; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id == STORAGE_ENGINE_DBENGINE) error_report("HEALTH [%s]: Database has not been initialized", rrdhost_hostname(host)); return; } @@ -1012,7 +1012,7 @@ int sql_store_alert_config_hash(uuid_t *hash_id, struct alert_config *cfg) int rc, param = 0; if (unlikely(!db_meta)) { - if (default_rrd_memory_mode != RRD_MEMORY_MODE_DBENGINE) + if (default_storage_engine_id != STORAGE_ENGINE_DBENGINE) return 0; error_report("Database has not been initialized"); return 1; |