Fix delete after create index (#12174)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/12194/head
yukun 2021-11-22 23:11:14 +08:00 committed by GitHub
parent 7a01d61a7a
commit 7a0d5ed6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ func (dNode *deleteNode) delete(deleteData *deleteData, segmentID UniqueID, wg *
return
}
if targetSegment.segmentType != segmentTypeSealed {
if targetSegment.segmentType != segmentTypeSealed && targetSegment.segmentType != segmentTypeIndexing {
return
}
@ -116,7 +116,7 @@ func (dNode *deleteNode) delete(deleteData *deleteData, segmentID UniqueID, wg *
return
}
log.Debug("Do delete done", zap.Int("len", len(deleteData.deleteIDs[segmentID])), zap.Int64("segmentID", segmentID))
log.Debug("Do delete done", zap.Int("len", len(deleteData.deleteIDs[segmentID])), zap.Int64("segmentID", segmentID), zap.Any("SegmentType", targetSegment.segmentType))
}
func newDeleteNode(historicalReplica ReplicaInterface) *deleteNode {