Skip to content
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

commitlog: Make offset index usable externally #2108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kim
Copy link
Contributor

@kim kim commented Jan 13, 2025

  • make OffsetIndexWriter::append_after_commit pub
  • expose offset index len calculation as method on Options
  • add conversions between mutable and read-only index (as_mut, From impls)
  • add an iterator, which may be used to check if the index is valid

Expected complexity level and risk

1

Testing

Added a test for the iterator. The other changes are just visibility.

@kim kim requested a review from Shubham8287 January 13, 2025 09:32
@kim kim force-pushed the kim/commitlog/external-offset-index branch 2 times, most recently from 8fd6f6d to 9548f23 Compare January 13, 2025 15:49
* make `OffsetIndexWriter::append_after_commit` pub
* expose offset index len calculation as method on `Options`
* add conversions between mutable and read-only index (`as_mut`, `From`
  impls)
* add an iterator, which may be used to check if the index is valid
@kim kim force-pushed the kim/commitlog/external-offset-index branch from 9548f23 to 2d8a98e Compare January 13, 2025 15:52
@bfops bfops added the release-any To be landed in any release window label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants