[#1712] core: Extend object info string with EC header
Closes #1712 Change-Id: Ief4a960f7dece3359763113270d1ff5155f3f19e Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
f93b96c601
commit
f7779adf71
1 changed files with 8 additions and 1 deletions
|
@ -13,6 +13,13 @@ type ECInfo struct {
|
|||
Total uint32
|
||||
}
|
||||
|
||||
func (v *ECInfo) String() string {
|
||||
if v == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("parent ID: %s, index: %d, total %d", v.ParentID, v.Index, v.Total)
|
||||
}
|
||||
|
||||
// Info groups object address with its FrostFS
|
||||
// object info.
|
||||
type Info struct {
|
||||
|
@ -23,5 +30,5 @@ type Info struct {
|
|||
}
|
||||
|
||||
func (v Info) String() string {
|
||||
return fmt.Sprintf("address: %s, type: %s, is linking: %t", v.Address, v.Type, v.IsLinkingObject)
|
||||
return fmt.Sprintf("address: %s, type: %s, is linking: %t, EC header: %s", v.Address, v.Type, v.IsLinkingObject, v.ECInfo)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue