From 02e73a40998a38eb7b33a16e07d5fff0ef12fe58 Mon Sep 17 00:00:00 2001 From: huanghaoyuanhhy Date: Thu, 20 Mar 2025 18:01:46 +0800 Subject: [PATCH] client: flush wait condition no longer checks empty seg IDs Signed-off-by: huanghaoyuanhhy --- core/client/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/grpc.go b/core/client/grpc.go index 0d5018d5..2105fddd 100644 --- a/core/client/grpc.go +++ b/core/client/grpc.go @@ -443,7 +443,7 @@ func (g *GrpcClient) Flush(ctx context.Context, db, collName string) (*milvuspb. segmentIDs, has := resp.GetCollSegIDs()[collName] ids := segmentIDs.GetData() - if has && len(ids) > 0 { + if has { flushTS := resp.GetCollFlushTs()[collName] if err := g.checkFlush(ctx, ids, flushTS, collName); err != nil { return nil, fmt.Errorf("client: check flush failed: %w", err)