summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2022-05-02 18:00:24 +0300
committerGitHub <noreply@github.com>2022-05-02 18:00:24 +0300
commit272b61424c9a8eb90e30aa5eccd31eacac233e7c (patch)
tree9ae1bc3d0c683dc7a1a3cbac2b310633079197c9 /database
parentb6d2a3662dfb683e9e95203ef3b21f8e31238b06 (diff)
Avoid clearing already unset flags. (#12727)
If memory mode is save, map or ram the set's flags are initialized to 0. Otherwise, the set is calloc'd which will make the set have 0 flags.
Diffstat (limited to 'database')
-rw-r--r--database/rrdset.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/database/rrdset.c b/database/rrdset.c
index 84c9a38822..47691b59fd 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -871,14 +871,6 @@ RRDSET *rrdset_create_custom(
else
rrdset_flag_clear(st, RRDSET_FLAG_ENABLED);
- rrdset_flag_clear(st, RRDSET_FLAG_DETAIL);
- rrdset_flag_clear(st, RRDSET_FLAG_DEBUG);
- rrdset_flag_clear(st, RRDSET_FLAG_OBSOLETE);
- rrdset_flag_clear(st, RRDSET_FLAG_EXPORTING_SEND);
- rrdset_flag_clear(st, RRDSET_FLAG_EXPORTING_IGNORE);
- rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_SEND);
- rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_IGNORE);
- rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_EXPOSED);
rrdset_flag_set(st, RRDSET_FLAG_SYNC_CLOCK);
st->green = NAN;