diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-12-21 08:48:44 +0200 |
---|---|---|
committer | Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com> | 2024-02-06 16:33:22 +0200 |
commit | fab96d99215c6a22d01324435f939c45cea8e55d (patch) | |
tree | 27ae3558964361eac26d1b73a657a63bf6f230ee | |
parent | 7cf4c8b53f3228d4d6fdc03465d527f878ae15b8 (diff) |
Fix compilation error when using --disable-dbengine (#16645)
(cherry picked from commit db1825667e186be17401b7497a29b77d8027d2e7)
-rw-r--r-- | daemon/global_statistics.c | 2 | ||||
-rw-r--r-- | daemon/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/daemon/global_statistics.c b/daemon/global_statistics.c index a680b9b036..9fb1df5f8e 100644 --- a/daemon/global_statistics.c +++ b/daemon/global_statistics.c @@ -857,6 +857,7 @@ static void global_statistics_charts(void) { // ---------------------------------------------------------------- +#ifdef ENABLE_DBENGINE if (tier_page_type[0] == PAGE_GORILLA_METRICS) { static RRDSET *st_tier0_gorilla_pages = NULL; @@ -918,6 +919,7 @@ static void global_statistics_charts(void) { rrdset_done(st_tier0_compression_info); } +#endif } // ---------------------------------------------------------------------------- diff --git a/daemon/main.c b/daemon/main.c index 3c8cb679d9..7351bd65c3 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1495,11 +1495,11 @@ int main(int argc, char **argv) { #ifdef ENABLE_DBENGINE char* createdataset_string = "createdataset="; char* stresstest_string = "stresstest="; -#endif if(strcmp(optarg, "pgd-tests") == 0) { return pgd_test(argc, argv); } +#endif if(strcmp(optarg, "sqlite-meta-recover") == 0) { sql_init_database(DB_CHECK_RECOVER, 0); |