forked from TrueCloudLab/frostfs-node
[#1118] services/control: return error counter in ListShards
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
7fb15fa1d0
commit
ed50cf6207
7 changed files with 40 additions and 5 deletions
|
@ -17,7 +17,9 @@ func (e *StorageEngine) DumpInfo() (i Info) {
|
|||
i.Shards = make([]shard.Info, 0, len(e.shards))
|
||||
|
||||
for _, sh := range e.shards {
|
||||
i.Shards = append(i.Shards, sh.DumpInfo())
|
||||
info := sh.DumpInfo()
|
||||
info.ErrorCount = sh.errorCount.Load()
|
||||
i.Shards = append(i.Shards, info)
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue