Fix lock not applied (#5856)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/5872/head
congqixia 2021-06-18 16:14:16 +08:00 committed by GitHub
parent 51bfbf1ddf
commit 7ad33c34b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func (m *meta) addPartition(collectionID UniqueID, partitionID UniqueID) error {
func (m *meta) deleteSegmentInfoByID(segmentID UniqueID) {
m.Lock()
m.Unlock()
defer m.Unlock()
delete(m.segmentInfos, segmentID)
}