Skip to content

Commit

Permalink
fix: Show segment-index of segments in Flushing state (#240)
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Feb 4, 2024
1 parent 9f3891d commit 5178eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states/etcd/show/segment_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (c *ComponentShow) SegmentIndexCommand(ctx context.Context, p *SegmentIndex
count := make(map[string]int)

for _, segment := range segments {
if segment.State != commonpb.SegmentState_Flushed {
if segment.State != commonpb.SegmentState_Flushed && segment.GetState() != commonpb.SegmentState_Flushing {
continue
}
fmt.Printf("SegmentID: %d\t State: %s", segment.GetID(), segment.GetState().String())
Expand Down

0 comments on commit 5178eef

Please sign in to comment.