Skip to content

Commit

Permalink
Move function from under a wrong ifdef (#7564)
Browse files Browse the repository at this point in the history
Somehow the hypercore supported am function ended up under
 #ifdef TELEMETRY, so some rare build configurations are failing.


Disable-check: force-changelog-file
  • Loading branch information
akuzm authored Dec 24, 2024
1 parent 19288c1 commit 27c4c02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ ts_function_telemetry_on()
return ts_guc_telemetry_level > TELEMETRY_NO_FUNCTIONS;
}

static const struct config_enum_entry telemetry_level_options[] = {
{ "off", TELEMETRY_OFF, false },
{ "no_functions", TELEMETRY_NO_FUNCTIONS, false },
{ "basic", TELEMETRY_BASIC, false },
{ NULL, 0, false }
};
#endif

bool
ts_is_whitelisted_indexam(const char *amname)
{
Expand Down Expand Up @@ -67,14 +75,6 @@ ts_is_whitelisted_indexam(const char *amname)
return false;
}

static const struct config_enum_entry telemetry_level_options[] = {
{ "off", TELEMETRY_OFF, false },
{ "no_functions", TELEMETRY_NO_FUNCTIONS, false },
{ "basic", TELEMETRY_BASIC, false },
{ NULL, 0, false }
};
#endif

/* Copied from contrib/auto_explain/auto_explain.c */
static const struct config_enum_entry loglevel_options[] = {
{ "debug5", DEBUG5, false }, { "debug4", DEBUG4, false }, { "debug3", DEBUG3, false },
Expand Down

0 comments on commit 27c4c02

Please sign in to comment.