mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
Fix rocksmq retention panic when delete by message size (#7393)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
1002815e00
commit
71aa300499
@ -377,7 +377,7 @@ func (ri *retentionInfo) expiredCleanUp(topic string) error {
|
||||
if pageInfo != nil {
|
||||
// Judge expire by ackedSize
|
||||
if msgSizeExpiredCheck(deletedAckedSize, ackedInfo.ackedSize) {
|
||||
for _, pEndID := range pageInfo.pageEndID[pageRetentionOffset:0] {
|
||||
for _, pEndID := range pageInfo.pageEndID[pageRetentionOffset:] {
|
||||
curDeletedSize := deletedAckedSize + pageInfo.pageMsgSize[pEndID]
|
||||
if msgSizeExpiredCheck(curDeletedSize, ackedInfo.ackedSize) {
|
||||
endID = pEndID
|
||||
|
Loading…
Reference in New Issue
Block a user