From 39c76e22269bd24e728a0b4fe39fd511425d9e3d Mon Sep 17 00:00:00 2001 From: Suhas Thalanki Date: Thu, 24 Jul 2025 14:51:51 -0400 Subject: [PATCH] fixed syntax issues --- pgxn/neon/neon.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pgxn/neon/neon.c b/pgxn/neon/neon.c index 8af4399283..5a6d7dcd2f 100644 --- a/pgxn/neon/neon.c +++ b/pgxn/neon/neon.c @@ -448,15 +448,13 @@ static int neon_pgstat_file_size_limit; #endif #if PG_VERSION_NUM >= 160000 && PG_VERSION_NUM < 170000 -if (lakebase_mode) { - static void DatabricksSqlErrorHookImpl(int sqlerrcode) { - if (sqlerrcode == ERRCODE_DATA_CORRUPTED) { - pg_atomic_fetch_add_u32(&databricks_metrics_shared->data_corruption_count, 1); - } else if (sqlerrcode == ERRCODE_INDEX_CORRUPTED) { - pg_atomic_fetch_add_u32(&databricks_metrics_shared->index_corruption_count, 1); - } else if (sqlerrcode == ERRCODE_INTERNAL_ERROR) { - pg_atomic_fetch_add_u32(&databricks_metrics_shared->internal_error_count, 1); - } +static void DatabricksSqlErrorHookImpl(int sqlerrcode) { + if (sqlerrcode == ERRCODE_DATA_CORRUPTED) { + pg_atomic_fetch_add_u32(&databricks_metrics_shared->data_corruption_count, 1); + } else if (sqlerrcode == ERRCODE_INDEX_CORRUPTED) { + pg_atomic_fetch_add_u32(&databricks_metrics_shared->index_corruption_count, 1); + } else if (sqlerrcode == ERRCODE_INTERNAL_ERROR) { + pg_atomic_fetch_add_u32(&databricks_metrics_shared->internal_error_count, 1); } } #endif