From 27c4c02d71e309ea5e1d525a431fa28c9bfdf604 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:57:19 +0100 Subject: [PATCH] Move function from under a wrong ifdef (#7564) Somehow the hypercore supported am function ended up under #ifdef TELEMETRY, so some rare build configurations are failing. Disable-check: force-changelog-file --- src/guc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/guc.c b/src/guc.c index 861760c17e2..c71035a2979 100644 --- a/src/guc.c +++ b/src/guc.c @@ -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) { @@ -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 },