mirror of https://github.com/milvus-io/milvus.git
Fix issue 5333 uninitialized return value (#5338)
Fix uninitialized named value `meta` caused crash Resolves #5333 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/5184/head
parent
761350e44d
commit
46790d9c68
|
@ -793,6 +793,7 @@ func (ibNode *insertBufferNode) getCollMetabySegID(segmentID UniqueID) (meta *et
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
meta = &etcdpb.CollectionMeta{}
|
||||
meta.ID = ret.collectionID
|
||||
|
||||
coll, err := ibNode.replica.getCollectionByID(ret.collectionID)
|
||||
|
|
Loading…
Reference in New Issue