Skip to content

Commit

Permalink
enhance: Purge delete buffer asap all L0 segment ready
Browse files Browse the repository at this point in the history
See also milvus-io#35303

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Aug 6, 2024
1 parent 3c9a47c commit 9725c52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/querynodev2/delegator/delegator_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ func (sd *shardDelegator) loadStreamDelete(ctx context.Context,
}
}

// if segment level is not L0, delete buffer could be purged safely according to target checkpoint
sd.deleteBuffer.TryDiscard(position.GetTimestamp())

deleteData = &storage.DeleteData{}
// start position is dml position for segment
// if this position is before deleteBuffer's safe ts, it means some delete shall be read from msgstream
Expand Down

0 comments on commit 9725c52

Please sign in to comment.