Skip to content

fix: correct AOF size calculation by traversing incrAOFList instead o…#1031

Merged
suxb201 merged 1 commit intotair-opensource:v4from
lzj47010:fix/aof-size-calc-target-list
Mar 6, 2026
Merged

fix: correct AOF size calculation by traversing incrAOFList instead o…#1031
suxb201 merged 1 commit intotair-opensource:v4from
lzj47010:fix/aof-size-calc-target-list

Conversation

@lzj47010
Copy link
Contributor

@lzj47010 lzj47010 commented Mar 6, 2026

The GetBaseAndIncrAppendOnlyFileSize function was incorrectly iterating over
am.HistoryList to calculate the total size of incremental AOF files.

This commit updates the logic to traverse am.incrAOFList, ensuring only
active incremental files are accounted for.

Fixes #1030

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

@suxb201 suxb201 merged commit 1a78b85 into tair-opensource:v4 Mar 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

恢复Multi-Part AOF文件时,文件大小计算错误

3 participants