summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2024-02-20 20:47:43 +0200
committerGitHub <noreply@github.com>2024-02-20 20:47:43 +0200
commit58464f5d93cb3909d39595c9e21c3b6d1aa7d6b3 (patch)
tree1e065e318d8b940eb6636ad87a78b8a2955e15f7
parent3959956daedfb188be255ee37e32211eba46f745 (diff)
Code cleanup (#17036)
Cleanup structs
-rw-r--r--src/database/rrd.h10
-rw-r--r--src/database/rrdset.c1
-rw-r--r--src/health/health_event_loop.c2
3 files changed, 0 insertions, 13 deletions
diff --git a/src/database/rrd.h b/src/database/rrd.h
index 9c5aa7f432..adea384852 100644
--- a/src/database/rrd.h
+++ b/src/database/rrd.h
@@ -65,9 +65,7 @@ typedef enum __attribute__ ((__packed__)) storage_priority {
struct rrddim_tier;
#ifdef ENABLE_DBENGINE
-struct rrdeng_page_descr;
struct rrdengine_instance;
-struct pg_cache_page_index;
#endif
// ----------------------------------------------------------------------------
@@ -146,7 +144,6 @@ const char *rrdset_type_name(RRDSET_TYPE chart_type);
#include "contexts/rrdcontext.h"
-extern bool unittest_running;
extern bool dbengine_enabled;
extern size_t storage_tiers;
extern bool use_direct_io;
@@ -790,11 +787,7 @@ struct rrdset {
// (RRDSET_DB_STATE ptr to an undefined structure, and a call to clean this up during destruction)
struct {
- char *cache_dir; // the directory to store dimensions
- void *st_on_file; // compatibility with V019 RRDSET files
-
int32_t entries; // total number of entries in the data set
-
int32_t current_entry; // the entry that is currently being updated
// it goes around in a round-robin fashion
} db;
@@ -1094,8 +1087,6 @@ typedef struct health {
time_t health_delay_up_to; // a timestamp to delay alarms processing up to
STRING *health_default_exec; // the full path of the alarms notifications program
STRING *health_default_recipient; // the default recipient for all alarms
- uint32_t health_default_warn_repeat_every; // the default value for the interval between repeating warning notifications
- uint32_t health_default_crit_repeat_every; // the default value for the interval between repeating critical notifications
unsigned int health_enabled; // 1 when this host has health enabled
bool use_summary_for_notifications; // whether or not to use the summary field as a subject for notifications
} HEALTH;
@@ -1313,7 +1304,6 @@ extern RRDHOST *localhost;
#define rrdhost_hostname(host) string2str((host)->hostname)
#define rrdhost_registry_hostname(host) string2str((host)->registry_hostname)
#define rrdhost_os(host) string2str((host)->os)
-#define rrdhost_tags(host) string2str((host)->tags)
#define rrdhost_timezone(host) string2str((host)->timezone)
#define rrdhost_abbrev_timezone(host) string2str((host)->abbrev_timezone)
#define rrdhost_program_name(host) string2str((host)->program_name)
diff --git a/src/database/rrdset.c b/src/database/rrdset.c
index 096558d28f..904f8cd827 100644
--- a/src/database/rrdset.c
+++ b/src/database/rrdset.c
@@ -373,7 +373,6 @@ static void rrdset_delete_callback(const DICTIONARY_ITEM *item __maybe_unused, v
string_freez(st->module_name);
freez(st->exporting_flags);
- freez(st->db.cache_dir);
}
// the item to be inserted, is already in the dictionary
diff --git a/src/health/health_event_loop.c b/src/health/health_event_loop.c
index 62ee1c56b5..9ec3d00f90 100644
--- a/src/health/health_event_loop.c
+++ b/src/health/health_event_loop.c
@@ -148,8 +148,6 @@ static void health_initialize_rrdhost(RRDHOST *host) {
rrdhost_flag_set(host, RRDHOST_FLAG_INITIALIZED_HEALTH);
- host->health.health_default_warn_repeat_every = health_globals.config.default_warn_repeat_every;
- host->health.health_default_crit_repeat_every = health_globals.config.default_crit_repeat_every;
host->health_log.max = health_globals.config.health_log_entries_max;
host->health_log.health_log_history = health_globals.config.health_log_history;
host->health.health_default_exec = string_dup(health_globals.config.default_exec);