forked from TrueCloudLab/frostfs-node
Dmitrii Stepanov
d3b209c8e1
Since `frostfs-cli control shards rebuild` command was added, there is no need for background rebuild now. For failover tests used used value 1 to rebuild only schema change. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
27 lines
505 B
Go
27 lines
505 B
Go
package common
|
|
|
|
import (
|
|
"context"
|
|
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
|
)
|
|
|
|
type RebuildRes struct {
|
|
ObjectsMoved uint64
|
|
FilesRemoved uint64
|
|
}
|
|
|
|
type RebuildPrm struct {
|
|
MetaStorage MetaStorage
|
|
WorkerLimiter ConcurrentWorkersLimiter
|
|
FillPercent int
|
|
}
|
|
|
|
type MetaStorage interface {
|
|
UpdateStorageID(ctx context.Context, addr oid.Address, storageID []byte) error
|
|
}
|
|
|
|
type ConcurrentWorkersLimiter interface {
|
|
AcquireWorkSlot(ctx context.Context) error
|
|
ReleaseWorkSlot()
|
|
}
|