Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix miss makezero bug #33386

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/tools/migration/meta/210_to_220.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getLatestFieldIndexes(colls map[Timestamp]*pb.CollectionInfo) *FieldIndexes
coll *pb.CollectionInfo
}
l := len(colls)
pairs := make([]pair, l)
pairs := make([]pair, 0, l)
for ts, coll := range colls {
pairs = append(pairs, pair{ts: ts, coll: coll})
}
Expand Down
2 changes: 1 addition & 1 deletion internal/rootcoord/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (b *ServerBroker) BroadcastAlteredCollection(ctx context.Context, req *milv
return err
}

partitionIDs := make([]int64, len(colMeta.Partitions))
partitionIDs := make([]int64, 0, len(colMeta.Partitions))
for _, p := range colMeta.Partitions {
partitionIDs = append(partitionIDs, p.PartitionID)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/minicluster_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func StartMiniClusterV2(ctx context.Context, opts ...OptionV2) (*MiniClusterV2,
}

func (cluster *MiniClusterV2) AddQueryNodes(k int) []*grpcquerynode.Server {
servers := make([]*grpcquerynode.Server, k)
servers := make([]*grpcquerynode.Server, 0, k)
for i := 0; i < k; i++ {
servers = append(servers, cluster.AddQueryNode())
}
Expand Down
Loading