Skip to content

Commit 1a78b85

Browse files
lzj47010suxb201
authored andcommitted
fix: correct AOF size calculation by traversing incrAOFList instead of HistoryList
1 parent a4e1937 commit 1a78b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/reader/parsing_aof.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ func (aofInfo *INFO) GetBaseAndIncrAppendOnlyFilesSize(am *AOFManifest, status *
523523
}
524524
}
525525

526-
for ln := am.HistoryList.Front(); ln != nil; ln = ln.Next() {
526+
for ln := am.incrAOFList.Front(); ln != nil; ln = ln.Next() {
527527
ai := ln.Value.(*AOFInfo)
528528
if ai.AOFFileType != AOFManifestTypeIncr {
529529
log.Panicf("File type must be Incr")

0 commit comments

Comments
 (0)