mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for SetState (#9397)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9412/head
parent
cc794354b5
commit
d41cdbb909
|
@ -200,6 +200,7 @@ func SetExpireTime(expireTs Timestamp) SegmentInfoOption {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetState is the option to set state for segment info
|
||||||
func SetState(state commonpb.SegmentState) SegmentInfoOption {
|
func SetState(state commonpb.SegmentState) SegmentInfoOption {
|
||||||
return func(segment *SegmentInfo) {
|
return func(segment *SegmentInfo) {
|
||||||
segment.State = state
|
segment.State = state
|
||||||
|
|
Loading…
Reference in New Issue