[#1181] shard: Set Disabled
as default mode
for components
All checks were successful
DCO action / DCO (pull_request) Successful in 4m20s
Build / Build Components (1.20) (pull_request) Successful in 5m31s
Build / Build Components (1.21) (pull_request) Successful in 5m30s
Vulncheck / Vulncheck (pull_request) Successful in 5m12s
Tests and linters / gopls check (pull_request) Successful in 39m31s
Tests and linters / Staticcheck (pull_request) Successful in 48m29s
Tests and linters / Lint (pull_request) Successful in 2m59s
Tests and linters / Tests (1.20) (pull_request) Successful in 4m6s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m38s
Tests and linters / Tests with -race (pull_request) Successful in 4m47s
All checks were successful
DCO action / DCO (pull_request) Successful in 4m20s
Build / Build Components (1.20) (pull_request) Successful in 5m31s
Build / Build Components (1.21) (pull_request) Successful in 5m30s
Vulncheck / Vulncheck (pull_request) Successful in 5m12s
Tests and linters / gopls check (pull_request) Successful in 39m31s
Tests and linters / Staticcheck (pull_request) Successful in 48m29s
Tests and linters / Lint (pull_request) Successful in 2m59s
Tests and linters / Tests (1.20) (pull_request) Successful in 4m6s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m38s
Tests and linters / Tests with -race (pull_request) Successful in 4m47s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
6067e644d6
commit
6bec1b9d89
4 changed files with 4 additions and 1 deletions
|
@ -54,6 +54,7 @@ func initConfig(c *cfg) {
|
|||
// New creates, initializes and returns new BlobStor instance.
|
||||
func New(opts ...Option) *BlobStor {
|
||||
bs := new(BlobStor)
|
||||
bs.mode = mode.Disabled
|
||||
initConfig(&bs.cfg)
|
||||
|
||||
for i := range opts {
|
||||
|
|
|
@ -107,6 +107,7 @@ func New(opts ...Option) *DB {
|
|||
matchBucket: stringCommonPrefixMatcherBucket,
|
||||
},
|
||||
},
|
||||
mode: mode.Disabled,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,6 +81,7 @@ func NewBoltForest(opts ...Option) ForestStorage {
|
|||
openFile: os.OpenFile,
|
||||
metrics: &noopMetrics{},
|
||||
},
|
||||
mode: mode.Disabled,
|
||||
}
|
||||
|
||||
for i := range opts {
|
||||
|
|
|
@ -60,7 +60,7 @@ var defaultBucket = []byte{0}
|
|||
func New(opts ...Option) Cache {
|
||||
c := &cache{
|
||||
flushCh: make(chan objectInfo),
|
||||
mode: mode.ReadWrite,
|
||||
mode: mode.Disabled,
|
||||
|
||||
compressFlags: make(map[string]struct{}),
|
||||
options: options{
|
||||
|
|
Loading…
Reference in a new issue