diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2024-05-02 06:41:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 09:41:14 +0300 |
commit | 3a1f3e3d7e4ddeddd487bdbf6ed6ee7f550cb39b (patch) | |
tree | 332c1210abcd15e5f2e5007305af599d7dec50b4 /src | |
parent | 6678fc3197fa66dd4d574474055732602f46254f (diff) |
Fix compilation without `dbengine` (#17575)
* fix_dbengine_compilation: Add missing macros to daemon/main
* fix_dbengine_compilation: Add missing macros to database/rrdhost.c
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/main.c | 2 | ||||
-rw-r--r-- | src/database/rrdhost.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index cb91b9bb84..8f11b21691 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -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; diff --git a/src/database/rrdhost.c b/src/database/rrdhost.c index a005d60d27..a2f6d4d1ae 100644 --- a/src/database/rrdhost.c +++ b/src/database/rrdhost.c @@ -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, |