Remove unused 'scantuplesortstates' field

This commit is contained in:
Heikki Linnakangas
2024-01-18 19:56:17 +02:00
committed by Andrew Kane
parent 70106f5413
commit 6fd05dd6f6
2 changed files with 0 additions and 5 deletions

View File

@@ -170,7 +170,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;

View File

@@ -771,7 +771,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;
HnswShared *hnswshared; HnswShared *hnswshared;
@@ -792,8 +791,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;
@@ -834,7 +831,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 */