Limit moving gc threads

This commit is contained in:
zenground0 2023-04-04 14:07:36 -06:00
parent 522388820a
commit c281d053d2

View File

@ -396,6 +396,9 @@ func (b *Blockstore) doCopy(from, to *badger.DB) error {
if workers < 2 {
workers = 2
}
if workers > 8 {
workers = 8
}
stream := from.NewStream()
stream.NumGo = workers