frostfs-node/pkg/local_object_storage/blobstor/common/rebuild.go
Dmitrii Stepanov e94c30a98f
Some checks are pending
DCO action / DCO (pull_request) Successful in 2m39s
Build / Build Components (1.22) (pull_request) Successful in 2m52s
Build / Build Components (1.23) (pull_request) Has started running
Tests and linters / Run gofumpt (pull_request) Successful in 2m36s
Vulncheck / Vulncheck (pull_request) Successful in 2m49s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m38s
Tests and linters / Tests (1.22) (pull_request) Successful in 3m35s
Tests and linters / Staticcheck (pull_request) Successful in 3m31s
Tests and linters / Tests (1.23) (pull_request) Successful in 3m36s
Tests and linters / Tests with -race (pull_request) Successful in 3m43s
Tests and linters / gopls check (pull_request) Successful in 4m16s
Tests and linters / Lint (pull_request) Successful in 4m32s
[#1337] shard: Disable background rebuild
Since `frostfs-cli control shards rebuild` command was added,
there is no need for background rebuild now.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-09-04 10:52:53 +03:00

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()
}