Skip to content

chore: refactor WBWIMemTable::NewIterator for better readability #13509

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

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

Conversation

mdqst
Copy link

@mdqst mdqst commented Apr 1, 2025

I refactored the WBWIMemTable::NewIterator function to improve its clarity and memory management. Instead of creating a unique_ptr inline in the constructor, I used std::make_unique to create the iterator and passed it more clearly using std::move.

This change makes the code simpler, more readable, and ensures proper ownership transfer of the iterator.

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.

2 participants