pgvector.git / summary / log / commit / refs
commit ad8df27fbb68a7dd4a4a71407a235e8e38d9a875
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Jul 17 01:46:45 2023 +0000
Changed sorting tuples indexing phase to assigning tuples [skip ci]
src/ivfbuild.c | 2 +-
src/ivfflat.c | 4 ++--
src/ivfflat.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ivfbuild.c b/src/ivfbuild.c
index 222aa3fb..fce1348f 100644
--- a/src/ivfbuild.c
+++ b/src/ivfbuild.c
@@ -995,7 +995,7 @@ AssignTuples(IvfflatBuildState * buildstate)
Oid sortCollations[] = {InvalidOid};
bool nullsFirstFlags[] = {false};
- UpdateProgress(PROGRESS_CREATEIDX_SUBPHASE, PROGRESS_IVFFLAT_PHASE_SORT);
+ UpdateProgress(PROGRESS_CREATEIDX_SUBPHASE, PROGRESS_IVFFLAT_PHASE_ASSIGN);
/* Calculate parallel workers */
if (buildstate->heap != NULL)
diff --git a/src/ivfflat.c b/src/ivfflat.c
index ef926a87..62a4ea2c 100644
--- a/src/ivfflat.c
+++ b/src/ivfflat.c
@@ -48,8 +48,8 @@ ivfflatbuildphasename(int64 phasenum)
return "initializing";
case PROGRESS_IVFFLAT_PHASE_KMEANS:
return "performing k-means";
- case PROGRESS_IVFFLAT_PHASE_SORT:
- return "sorting tuples";
+ case PROGRESS_IVFFLAT_PHASE_ASSIGN:
+ return "assigning tuples";
case PROGRESS_IVFFLAT_PHASE_LOAD:
return "loading tuples";
default:
diff --git a/src/ivfflat.h b/src/ivfflat.h
index 74bbe6eb..92912c9e 100644
--- a/src/ivfflat.h
+++ b/src/ivfflat.h
@@ -50,7 +50,7 @@
/* Build phases */
/* PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE is 1 */
#define PROGRESS_IVFFLAT_PHASE_KMEANS 2
-#define PROGRESS_IVFFLAT_PHASE_SORT 3
+#define PROGRESS_IVFFLAT_PHASE_ASSIGN 3
#define PROGRESS_IVFFLAT_PHASE_LOAD 4
#define IVFFLAT_LIST_SIZE(_dim) (offsetof(IvfflatListData, center) + VECTOR_SIZE(_dim))
[parent: b77451f19e98]