enhance: Set delete scope for LoadSegment streaming data (#30245)

See also #29474

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-01-30 11:13:02 +08:00 committed by GitHub
parent 0c7a96b48d
commit 7c086a4608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -617,6 +617,7 @@ func (sd *shardDelegator) loadStreamDelete(ctx context.Context,
SegmentId: info.GetSegmentID(), SegmentId: info.GetSegmentID(),
PrimaryKeys: storage.ParsePrimaryKeys2IDs(deleteData.Pks), PrimaryKeys: storage.ParsePrimaryKeys2IDs(deleteData.Pks),
Timestamps: deleteData.Tss, Timestamps: deleteData.Tss,
Scope: querypb.DataScope_Historical, // only sealed segment need to loadStreamDelete
}) })
if err != nil { if err != nil {
log.Warn("failed to apply delete when LoadSegment", zap.Error(err)) log.Warn("failed to apply delete when LoadSegment", zap.Error(err))