@cryptotaxi247 / netdata-1 / commits / 3a1f3e3d7

Fix compilation without `dbengine` (#17575)

* fix_dbengine_compilation: Add missing macros to daemon/main * fix_dbengine_compilation: Add missing macros to database/rrdhost.c

thiagoftsm committed May 2, 2024 at 06:41 UTC 3a1f3e3d7e4ddeddd487bdbf6ed6ee7f550cb39b
2 files changed +4
src/daemon/main.c
+2
@@ -1531,7 +1531,9 @@ int main(int argc, char **argv) {
1531
1532 // set defaults for dbegnine unittest
1533 config_set(CONFIG_SECTION_DB, "dbengine page type", "gorilla");
1534 +#ifdef ENABLE_DBENGINE
1535 default_rrdeng_disk_quota_mb = default_multidb_disk_quota_mb = 256;
1536 +#endif
1537
1538 if (sqlite_library_init())
1539 return 1;
src/database/rrdhost.c
+2
@@ -260,6 +260,7 @@ static void rrdhost_initialize_rrdpush_sender(RRDHOST *host,
260 rrdhost_option_clear(host, RRDHOST_OPTION_SENDER_ENABLED);
261 }
262
263 +#ifdef ENABLE_DBENGINE
264 //
265 // true on success
266 //
@@ -323,6 +324,7 @@ static RRDHOST *prepare_host_for_unittest(RRDHOST *host)
324 }
325 return host;
326 }
327 +#endif
328
329 static RRDHOST *rrdhost_create(
330 const char *hostname,