(in any)
| 49 | } |
| 50 | |
| 51 | func GetOrCreatePartitionRingDesc(in any) *PartitionRingDesc { |
| 52 | if in == nil { |
| 53 | return NewPartitionRingDesc() |
| 54 | } |
| 55 | |
| 56 | desc := in.(*PartitionRingDesc) |
| 57 | if desc == nil { |
| 58 | return NewPartitionRingDesc() |
| 59 | } |
| 60 | |
| 61 | return desc |
| 62 | } |
| 63 | |
| 64 | func NewPartitionRingDesc() *PartitionRingDesc { |
| 65 | return &PartitionRingDesc{ |