0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 11:12:42 +00:00

Fix compilation without dbengine ()

* fix_dbengine_compilation: Add missing macros to daemon/main

* fix_dbengine_compilation: Add missing macros to database/rrdhost.c
This commit is contained in:
thiagoftsm 2024-05-02 06:41:14 +00:00 committed by GitHub
parent 6678fc3197
commit 3a1f3e3d7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions
src
daemon
database

View file

@ -1531,7 +1531,9 @@ int main(int argc, char **argv) {
// set defaults for dbegnine unittest
config_set(CONFIG_SECTION_DB, "dbengine page type", "gorilla");
#ifdef ENABLE_DBENGINE
default_rrdeng_disk_quota_mb = default_multidb_disk_quota_mb = 256;
#endif
if (sqlite_library_init())
return 1;

View file

@ -260,6 +260,7 @@ static void rrdhost_initialize_rrdpush_sender(RRDHOST *host,
rrdhost_option_clear(host, RRDHOST_OPTION_SENDER_ENABLED);
}
#ifdef ENABLE_DBENGINE
//
// true on success
//
@ -323,6 +324,7 @@ static RRDHOST *prepare_host_for_unittest(RRDHOST *host)
}
return host;
}
#endif
static RRDHOST *rrdhost_create(
const char *hostname,