mirror of https://github.com/milvus-io/milvus.git
Add a string func for allocation (#20610)
Signed-off-by: yangxuan <xuan.yang@zilliz.com> Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/20620/head
parent
2dc6d0c92a
commit
3d4cfe14f8
|
@ -91,6 +91,11 @@ type Allocation struct {
|
|||
ExpireTime Timestamp
|
||||
}
|
||||
|
||||
func (alloc Allocation) String() string {
|
||||
t, _ := tsoutil.ParseTS(alloc.ExpireTime)
|
||||
return fmt.Sprintf("SegmentID: %d, NumOfRows: %d, ExpireTime: %v", alloc.SegmentID, alloc.NumOfRows, t)
|
||||
}
|
||||
|
||||
// make sure SegmentManager implements Manager
|
||||
var _ Manager = (*SegmentManager)(nil)
|
||||
|
||||
|
|
Loading…
Reference in New Issue