forked from TrueCloudLab/frostfs-node
[#189] shard: Extend Info with WeightValues
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4f16a10235
commit
4e8cc51e7b
3 changed files with 4 additions and 3 deletions
|
@ -15,6 +15,9 @@ type Info struct {
|
||||||
|
|
||||||
// Information about the BLOB storage.
|
// Information about the BLOB storage.
|
||||||
BlobStorInfo blobstor.Info
|
BlobStorInfo blobstor.Info
|
||||||
|
|
||||||
|
// Weight parameters of the shard.
|
||||||
|
WeightValues WeightValues
|
||||||
}
|
}
|
||||||
|
|
||||||
// DumpInfo returns information about the Shard.
|
// DumpInfo returns information about the Shard.
|
||||||
|
|
|
@ -13,8 +13,6 @@ type Shard struct {
|
||||||
|
|
||||||
mode *atomic.Uint32
|
mode *atomic.Uint32
|
||||||
|
|
||||||
weight WeightValues
|
|
||||||
|
|
||||||
blobStor *blobstor.BlobStor
|
blobStor *blobstor.BlobStor
|
||||||
|
|
||||||
metaBase *meta.DB
|
metaBase *meta.DB
|
||||||
|
|
|
@ -8,5 +8,5 @@ type WeightValues struct {
|
||||||
|
|
||||||
// WeightValues returns current weight values of the Shard.
|
// WeightValues returns current weight values of the Shard.
|
||||||
func (s *Shard) WeightValues() WeightValues {
|
func (s *Shard) WeightValues() WeightValues {
|
||||||
return s.weight
|
return s.info.WeightValues
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue