mirror of
https://github.com/netdata/netdata.git
synced 2025-04-17 11:12:42 +00:00
Fix compilation without dbengine
(#17575)
* fix_dbengine_compilation: Add missing macros to daemon/main * fix_dbengine_compilation: Add missing macros to database/rrdhost.c
This commit is contained in:
parent
6678fc3197
commit
3a1f3e3d7e
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue