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
congqixia 2021-05-21 16:21:08 +08:00 committed by GitHub
parent 761350e44d
commit 46790d9c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)