pgvector.git / summary / log / commit / refs
commit 2da27e2f01e957022be91fde531a323a270bca05
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Feb 11 23:52:59 2022 +0000
Updated name [skip ci]
src/ivfflat.h | 4 ++--
src/ivfscan.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ivfflat.h b/src/ivfflat.h
index 5d8535cf..0533a836 100644
--- a/src/ivfflat.h
+++ b/src/ivfflat.h
@@ -48,7 +48,7 @@
#define IvfflatPageGetMeta(page) ((IvfflatMetaPageData *) PageGetContents(page))
#ifdef IVFFLAT_BENCH
-#define Bench(name, code) \
+#define IvfflatBench(name, code) \
do { \
instr_time start; \
instr_time duration; \
@@ -59,7 +59,7 @@
elog(INFO, "%s: %.3f ms", name, INSTR_TIME_GET_MILLISEC(duration)); \
} while (0)
#else
-#define Bench(name, code) (code)
+#define IvfflatBench(name, code) (code)
#endif
#if PG_VERSION_NUM < 100000
diff --git a/src/ivfscan.c b/src/ivfscan.c
index 0553a32a..dfd52af0 100644
--- a/src/ivfscan.c
+++ b/src/ivfscan.c
@@ -271,8 +271,8 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
return false;
}
- Bench("GetScanLists", GetScanLists(scan, value));
- Bench("GetScanItems", GetScanItems(scan, value));
+ IvfflatBench("GetScanLists", GetScanLists(scan, value));
+ IvfflatBench("GetScanItems", GetScanItems(scan, value));
so->first = false;
/* Clean up if we allocated a new value */
[parent: 7dd934913d9b]