diff options
author | Adrien BĂ©raud <adrien.beraud@savoirfairelinux.com> | 2022-05-03 04:34:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 11:34:15 +0300 |
commit | d92890b5f180f13b5f680b3bd345e3674b8f8e8c (patch) | |
tree | 1ec4ccc7b409e2bdb2fe12fdbb6954470a75e3f5 /ml | |
parent | 5850810715a9b2fc9413a2b43ae2dc1d1a5b4bf6 (diff) |
Configurable storage engine for Netdata agents: step 1 (#12776)
* rrd: move API structures out of rrddim_volatile
In C, unlike C++, it's not possible to reference a nested structure
from outside this structure.
Since we later want to use rrddim_query_ops and rrddim_collect_ops
separately from rrddim_volatile, move these nested structures out.
* rrd: use opaque handle types for different memory modes
Diffstat (limited to 'ml')
-rw-r--r-- | ml/Dimension.h | 2 | ||||
-rw-r--r-- | ml/Query.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h index 44b348e9b2..b2af323a4b 100644 --- a/ml/Dimension.h +++ b/ml/Dimension.h @@ -45,7 +45,7 @@ private: RRDDIM *RD; RRDDIM *AnomalyRateRD; - struct rrddim_volatile::rrddim_query_ops *Ops; + struct rrddim_query_ops *Ops; std::string ID; }; diff --git a/ml/Query.h b/ml/Query.h index cbaf6c2977..8b84bb73e2 100644 --- a/ml/Query.h +++ b/ml/Query.h @@ -40,7 +40,7 @@ public: private: RRDDIM *RD; - struct rrddim_volatile::rrddim_query_ops *Ops; + struct rrddim_query_ops *Ops; struct rrddim_query_handle Handle; }; |