Skip to content

Commit

Permalink
Fix config enum entries for remote data fetcher
Browse files Browse the repository at this point in the history
config_enum entries, which are used for GUC values, need to contain
the end mark. Missing the end mark in the data fetcher entries
resulted in crashing TimescaleDB in Release on Windows. This commit
fixes the end mark for data fetcher config_enum entries.

Fixes #2775
  • Loading branch information
k-rus committed Jan 7, 2021
1 parent 13d8aac commit f61f5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ static const struct config_enum_entry telemetry_level_options[] = {
};

static const struct config_enum_entry remote_data_fetchers[] = {
{ "rowbyrow", RowByRowFetcherType, false }, { "cursor", CursorFetcherType, false }
{ "rowbyrow", RowByRowFetcherType, false },
{ "cursor", CursorFetcherType, false },
{ NULL, 0, false }
};

bool ts_guc_enable_optimizations = true;
Expand Down

0 comments on commit f61f5a0

Please sign in to comment.