From 2186c9c7d8835c6e78804d27801f7127ec964ebd Mon Sep 17 00:00:00 2001 From: lzj47010 <470102524@qq.com> Date: Fri, 6 Mar 2026 14:33:39 +0800 Subject: [PATCH] fix: correct AOF size calculation by traversing incrAOFList instead of HistoryList --- internal/reader/parsing_aof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reader/parsing_aof.go b/internal/reader/parsing_aof.go index c9bb51ea..82285454 100644 --- a/internal/reader/parsing_aof.go +++ b/internal/reader/parsing_aof.go @@ -523,7 +523,7 @@ func (aofInfo *INFO) GetBaseAndIncrAppendOnlyFilesSize(am *AOFManifest, status * } } - for ln := am.HistoryList.Front(); ln != nil; ln = ln.Next() { + for ln := am.incrAOFList.Front(); ln != nil; ln = ln.Next() { ai := ln.Value.(*AOFInfo) if ai.AOFFileType != AOFManifestTypeIncr { log.Panicf("File type must be Incr")