Skip to content

Commit 497ce42

Browse files
added changes
1 parent beaa64b commit 497ce42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tok/partitioned_hnsw/partitioned_hnsw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ func (ph *partitionedHNSW[T]) StartBuild(caches []index.CacheType) {
108108
}
109109

110110
for i := range ph.clusterMap {
111+
ph.buildSyncMaps[i] = &sync.Mutex{}
111112
if i%NUM_PASSES != (ph.buildPass - ph.partition.NumPasses()) {
112113
continue
113114
}
114-
ph.buildSyncMaps[i] = &sync.Mutex{}
115115
ph.clusterMap[i].StartBuild([]index.CacheType{ph.caches[i]})
116116
}
117117
}

0 commit comments

Comments
 (0)