[#1388] engine: Drop unused
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
580cd55180
commit
63a567a1de
1 changed files with 0 additions and 14 deletions
|
@ -249,23 +249,9 @@ func (e *StorageEngine) ResumeExecution() error {
|
|||
}
|
||||
|
||||
type ReConfiguration struct {
|
||||
errorsThreshold uint32
|
||||
shardPoolSize uint32
|
||||
|
||||
shards map[string][]shard.Option // meta path -> shard opts
|
||||
}
|
||||
|
||||
// SetErrorsThreshold sets a size amount of errors after which
|
||||
// shard is moved to read-only mode.
|
||||
func (rCfg *ReConfiguration) SetErrorsThreshold(errorsThreshold uint32) {
|
||||
rCfg.errorsThreshold = errorsThreshold
|
||||
}
|
||||
|
||||
// SetShardPoolSize sets a size of worker pool for each shard.
|
||||
func (rCfg *ReConfiguration) SetShardPoolSize(shardPoolSize uint32) {
|
||||
rCfg.shardPoolSize = shardPoolSize
|
||||
}
|
||||
|
||||
// AddShard adds a shard for the reconfiguration.
|
||||
// Shard identifier is calculated from paths used in blobstor.
|
||||
func (rCfg *ReConfiguration) AddShard(id string, opts []shard.Option) {
|
||||
|
|
Loading…
Reference in a new issue