parent
f82d53f75d
commit
7215badfcd
tsdb/index/inmem
|
@ -1066,13 +1066,11 @@ func (i *Index) assignExistingSeries(shardID uint64, seriesIDSet *tsdb.SeriesIDS
|
||||||
} else {
|
} else {
|
||||||
// Add the existing series to this shard's bitset, since this may
|
// Add the existing series to this shard's bitset, since this may
|
||||||
// be the first time the series is added to this shard.
|
// be the first time the series is added to this shard.
|
||||||
if !seriesIDSet.Contains(ss.ID) {
|
seriesIDSet.Lock()
|
||||||
seriesIDSet.Lock()
|
if !seriesIDSet.ContainsNoLock(ss.ID) {
|
||||||
if !seriesIDSet.ContainsNoLock(ss.ID) {
|
seriesIDSet.AddNoLock(ss.ID)
|
||||||
seriesIDSet.AddNoLock(ss.ID)
|
|
||||||
}
|
|
||||||
seriesIDSet.Unlock()
|
|
||||||
}
|
}
|
||||||
|
seriesIDSet.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i.mu.RUnlock()
|
i.mu.RUnlock()
|
||||||
|
|
Loading…
Reference in New Issue