summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-03-09 18:15:14 +0200
committerGitHub <noreply@github.com>2021-03-09 18:15:14 +0200
commit9c768c691100998bc7910aefdd9ae4ff79417763 (patch)
tree4340089461d51265656a89ac8ce299d9537d0ce7 /database
parent2ccc5a4d9ea781c2c20f9c47f56b2eea087de39a (diff)
Activate multidb context always when dbengine is compiled (#10732)
Diffstat (limited to 'database')
-rw-r--r--database/rrdhost.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c
index 03bd8a2699..b9a5a002e4 100644
--- a/database/rrdhost.c
+++ b/database/rrdhost.c
@@ -335,6 +335,11 @@ RRDHOST *rrdhost_create(const char *hostname,
fatal("RRD_MEMORY_MODE_DBENGINE is not supported in this platform.");
#endif
}
+ else {
+#ifdef ENABLE_DBENGINE
+ host->rrdeng_ctx = &multidb_ctx;
+#endif
+ }
// ------------------------------------------------------------------------
// link it and add it to the index