Просмотр исходного кода

Activate multidb context always when dbengine is compiled (#10732)

Stelios Fragkakis 4 лет назад
Родитель
Сommit
9c768c6911
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      database/rrdhost.c

+ 5 - 0
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