[#189] shard: Extend Info with WeightValues

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-19 18:04:09 +03:00 committed by Alex Vanin
parent 4f16a10235
commit 4e8cc51e7b
3 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,9 @@ type Info struct {
// Information about the BLOB storage.
BlobStorInfo blobstor.Info
// Weight parameters of the shard.
WeightValues WeightValues
}
// DumpInfo returns information about the Shard.

View file

@ -13,8 +13,6 @@ type Shard struct {
mode *atomic.Uint32
weight WeightValues
blobStor *blobstor.BlobStor
metaBase *meta.DB

View file

@ -8,5 +8,5 @@ type WeightValues struct {
// WeightValues returns current weight values of the Shard.
func (s *Shard) WeightValues() WeightValues {
return s.weight
return s.info.WeightValues
}