Skip to content

[sweeplive] Fix off_t to int truncation in bio repl transfer#337

Merged
sarthakaggarwal97 merged 1 commit into
sweep-base-1782248311from
src-offt-1782248311
Jun 23, 2026
Merged

[sweeplive] Fix off_t to int truncation in bio repl transfer#337
sarthakaggarwal97 merged 1 commit into
sweep-base-1782248311from
src-offt-1782248311

Conversation

@sarthakaggarwal97

Copy link
Copy Markdown
Owner

Live sweep test source PR (offt).

…ey-io#3811)

`off_t` (64-bit), but were read into `int` (32-bit) locals in
`genValkeyInfoString()` and `handleBioThreadFinishedRDBDownload()`.

This causes INFO replication to report negative
`master_sync_total_bytes` during bio disk-based sync when RDB exceeds
2GB.

Fix: change the local variable types from `int` to `off_t`.

Signed-off-by: chx9 <lovelypiska@outlook.com>
@sarthakaggarwal97 sarthakaggarwal97 merged commit 885c14a into sweep-base-1782248311 Jun 23, 2026
2 of 46 checks passed
@sarthakaggarwal97 sarthakaggarwal97 deleted the src-offt-1782248311 branch June 24, 2026 01:58
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.

2 participants