mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Remove unused 'scantuplesortstates' field
This commit is contained in:
committed by
Andrew Kane
parent
88213186a5
commit
d96e486274
@@ -212,7 +212,6 @@ typedef struct HnswShared
|
|||||||
Oid heaprelid;
|
Oid heaprelid;
|
||||||
Oid indexrelid;
|
Oid indexrelid;
|
||||||
bool isconcurrent;
|
bool isconcurrent;
|
||||||
int scantuplesortstates;
|
|
||||||
|
|
||||||
/* Worker progress */
|
/* Worker progress */
|
||||||
ConditionVariable workersdonecv;
|
ConditionVariable workersdonecv;
|
||||||
|
|||||||
@@ -897,7 +897,6 @@ static void
|
|||||||
HnswBeginParallel(HnswBuildState * buildstate, bool isconcurrent, int request)
|
HnswBeginParallel(HnswBuildState * buildstate, bool isconcurrent, int request)
|
||||||
{
|
{
|
||||||
ParallelContext *pcxt;
|
ParallelContext *pcxt;
|
||||||
int scantuplesortstates;
|
|
||||||
Snapshot snapshot;
|
Snapshot snapshot;
|
||||||
Size esthnswshared;
|
Size esthnswshared;
|
||||||
Size esthnswarea;
|
Size esthnswarea;
|
||||||
@@ -921,8 +920,6 @@ HnswBeginParallel(HnswBuildState * buildstate, bool isconcurrent, int request)
|
|||||||
pcxt = CreateParallelContext("vector", "HnswParallelBuildMain", request, true);
|
pcxt = CreateParallelContext("vector", "HnswParallelBuildMain", request, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scantuplesortstates = leaderparticipates ? request + 1 : request;
|
|
||||||
|
|
||||||
/* Get snapshot for table scan */
|
/* Get snapshot for table scan */
|
||||||
if (!isconcurrent)
|
if (!isconcurrent)
|
||||||
snapshot = SnapshotAny;
|
snapshot = SnapshotAny;
|
||||||
@@ -973,7 +970,6 @@ HnswBeginParallel(HnswBuildState * buildstate, bool isconcurrent, int request)
|
|||||||
hnswshared->heaprelid = RelationGetRelid(buildstate->heap);
|
hnswshared->heaprelid = RelationGetRelid(buildstate->heap);
|
||||||
hnswshared->indexrelid = RelationGetRelid(buildstate->index);
|
hnswshared->indexrelid = RelationGetRelid(buildstate->index);
|
||||||
hnswshared->isconcurrent = isconcurrent;
|
hnswshared->isconcurrent = isconcurrent;
|
||||||
hnswshared->scantuplesortstates = scantuplesortstates;
|
|
||||||
ConditionVariableInit(&hnswshared->workersdonecv);
|
ConditionVariableInit(&hnswshared->workersdonecv);
|
||||||
SpinLockInit(&hnswshared->mutex);
|
SpinLockInit(&hnswshared->mutex);
|
||||||
/* Initialize mutable state */
|
/* Initialize mutable state */
|
||||||
|
|||||||
Reference in New Issue
Block a user