pgvector.git / summary / log / commit / refs
commit ff400ce5f1edba94869f2181d1759abdfe24aa4a
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Feb 13 07:56:28 2022 +0000
Use macro for UpdateProgress
src/ivfbuild.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/ivfbuild.c b/src/ivfbuild.c
index 65e4f385..a1062460 100644
--- a/src/ivfbuild.c
+++ b/src/ivfbuild.c
@@ -36,16 +36,11 @@
#define CALLBACK_ITEM_POINTER HeapTuple hup
#endif
-/*
- * Update build phase progress
- */
-static inline void
-UpdateProgress(int index, int64 val)
-{
#if PG_VERSION_NUM >= 120000
- pgstat_progress_update_param(index, val);
+#define UpdateProgress(index, val) pgstat_progress_update_param(index, val)
+#else
+#define UpdateProgress(index, val) ((void)val)
#endif
-}
/*
* Callback for sampling
[parent: 41d11c62d6b3]