Updated name [skip ci]

This commit is contained in:
Andrew Kane
2022-02-11 15:52:59 -08:00
parent 7dd934913d
commit 2da27e2f01
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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 */