[#1055] blobstor: fix mode metric
All checks were successful
DCO action / DCO (pull_request) Successful in 1m53s
Build / Build Components (1.21) (pull_request) Successful in 2m52s
Vulncheck / Vulncheck (pull_request) Successful in 3m26s
Build / Build Components (1.20) (pull_request) Successful in 4m26s
Tests and linters / Staticcheck (pull_request) Successful in 6m54s
Tests and linters / Lint (pull_request) Successful in 8m48s
Tests and linters / gopls check (pull_request) Successful in 8m31s
Tests and linters / Tests (1.20) (pull_request) Successful in 12m13s
Tests and linters / Tests (1.21) (pull_request) Successful in 12m46s
Tests and linters / Tests with -race (pull_request) Successful in 13m26s
All checks were successful
DCO action / DCO (pull_request) Successful in 1m53s
Build / Build Components (1.21) (pull_request) Successful in 2m52s
Vulncheck / Vulncheck (pull_request) Successful in 3m26s
Build / Build Components (1.20) (pull_request) Successful in 4m26s
Tests and linters / Staticcheck (pull_request) Successful in 6m54s
Tests and linters / Lint (pull_request) Successful in 8m48s
Tests and linters / gopls check (pull_request) Successful in 8m31s
Tests and linters / Tests (1.20) (pull_request) Successful in 12m13s
Tests and linters / Tests (1.21) (pull_request) Successful in 12m46s
Tests and linters / Tests with -race (pull_request) Successful in 13m26s
It used to always show CLOSED after setting shard mode to read-only regardless of actual mode. Now metric represents actual blobstor mode of operations. Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
c7a12ca3d8
commit
ef55443cf8
1 changed files with 1 additions and 0 deletions
|
@ -31,5 +31,6 @@ func (b *BlobStor) SetMode(m mode.Mode) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
b.mode = m
|
b.mode = m
|
||||||
|
b.metrics.SetMode(m.ReadOnly())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue