@cryptotaxi247 / netdata-1 / commits / db1825667

Fix compilation error when using --disable-dbengine (#16645)

Stelios Fragkakis committed Dec 21, 2023 at 08:48 UTC db1825667e186be17401b7497a29b77d8027d2e7
2 files changed +3 -1
daemon/global_statistics.c
+2
@@ -857,6 +857,7 @@ static void global_statistics_charts(void) {
857
858 // ----------------------------------------------------------------
859
860 +#ifdef ENABLE_DBENGINE
861 if (tier_page_type[0] == PAGE_GORILLA_METRICS)
862 {
863 static RRDSET *st_tier0_gorilla_pages = NULL;
@@ -918,6 +919,7 @@ static void global_statistics_charts(void) {
919
920 rrdset_done(st_tier0_compression_info);
921 }
922 +#endif
923 }
924
925 // ----------------------------------------------------------------------------
daemon/main.c
+1 -1
@@ -1502,11 +1502,11 @@ int main(int argc, char **argv) {
1502 #ifdef ENABLE_DBENGINE
1503 char* createdataset_string = "createdataset=";
1504 char* stresstest_string = "stresstest=";
1505 -#endif
1505
1506 if(strcmp(optarg, "pgd-tests") == 0) {
1507 return pgd_test(argc, argv);
1508 }
1509 +#endif
1510
1511 if(strcmp(optarg, "sqlite-meta-recover") == 0) {
1512 sql_init_database(DB_CHECK_RECOVER, 0);