Merge pull request #10621 from filecoin-project/feat/limit-moving-gc-threads

feat:splitstore:limit moving gc threads
This commit is contained in:
Aayush Rajasekaran 2023-04-05 11:23:55 -04:00 committed by GitHub
commit f1f0d90897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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