[#1559] local_object_storage: Allow to set mode for all components
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
1e786233bf
commit
3df62769c0
16 changed files with 230 additions and 28 deletions
|
@ -4,9 +4,11 @@ import (
|
|||
"encoding/hex"
|
||||
"io/fs"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor/fstree"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard/mode"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -16,6 +18,9 @@ type BlobStor struct {
|
|||
*cfg
|
||||
|
||||
blobovniczas *blobovniczas
|
||||
|
||||
modeMtx sync.RWMutex
|
||||
mode mode.Mode
|
||||
}
|
||||
|
||||
type Info = fstree.Info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue