Skip to content

Commit

Permalink
Fix compilation error when using --disable-dbengine (netdata#16645)
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag authored Dec 21, 2023
1 parent 9adb108 commit db18256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions daemon/global_statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -918,6 +919,7 @@ static void global_statistics_charts(void) {

rrdset_done(st_tier0_compression_info);
}
#endif
}

// ----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion daemon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,11 +1502,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);
Expand Down

0 comments on commit db18256

Please sign in to comment.