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

Clean up BlobLogReader and rename it to BlobLogSequentialReader #7517

Closed
wants to merge 5 commits into from

Conversation

ltamasi
Copy link
Contributor

@ltamasi ltamasi commented Oct 7, 2020

Summary:
The patch does some cleanup in and around the legacy BlobLogReader class:

  • It renames the class to BlobLogSequentialReader to emphasize that it is for
    sequentially iterating through blobs in a blob file, as opposed to doing random
    point reads using BlobIndexes (which is BlobFileReader's jurisdiction).
  • It removes some dead code from the old BlobDB implementation that references
    BlobLogReader (namely the method BlobFile::OpenRandomAccessReader).
  • It cleans up some #includes and forward declarations.
  • It fixes some incorrect/outdated comments related to the reader class.
  • It adds a few assertions to the Read methods of the class.

Test Plan:
make check

@ltamasi ltamasi changed the title Clean up BlobLogReader and rename it to BlobLogSequentialReader Clean up BlobLogReader and rename it to BlobLogSequentialReader Oct 7, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ltamasi has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ltamasi merged this pull request in 1f84611.

codingrhythm pushed a commit to SafetyCulture/rocksdb that referenced this pull request Mar 5, 2021
…book#7517)

Summary:
The patch does some cleanup in and around the legacy `BlobLogReader` class:
* It renames the class to `BlobLogSequentialReader` to emphasize that it is for
sequentially iterating through blobs in a blob file, as opposed to doing random
point reads using `BlobIndex`es (which is `BlobFileReader`'s jurisdiction).
* It removes some dead code from the old BlobDB implementation that references
`BlobLogReader` (namely the method `BlobFile::OpenRandomAccessReader`).
* It cleans up some `#include`s and forward declarations.
* It fixes some incorrect/outdated comments related to the reader class.
* It adds a few assertions to the `Read` methods of the class.

Pull Request resolved: facebook#7517

Test Plan: `make check`

Reviewed By: riversand963

Differential Revision: D24172611

Pulled By: ltamasi

fbshipit-source-id: 43e2ae1eba5c3dd30c1070cb00f217edc45bd64f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants