-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(segments): Calculate absolute_offset
and Position
properly
#593
Conversation
if self.active_segment().size() < self.max_segment_size as u64 { | ||
Ok(Position::Done { | ||
start, | ||
end: (cursor.0, absolute_offset), | ||
}) | ||
} else { | ||
Ok(Position::Done { | ||
start, | ||
end: (cursor.0 + 1, absolute_offset), | ||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if active_segment().size()
>= self.max_segment_size
on the next append to commitlog we will call apply_retention
and new segment would be created.
@henil is the bug fix still required? most of the changes already existed in main branch, I resolved the merge conflicts, can you have a look at current state of PR and lmk if the changes are still required? if not required, can we close the PR? |
Type of change
Checklist:
cargo fmt