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

Allow specifying ReadOptions for WBWI iterator #12968

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tillrohrmann
Copy link

@tillrohrmann tillrohrmann commented Aug 24, 2024

Allow specifying ReadOptions for WBWI iterator when creating it through the C bindings. This allows to specify upper and lower bounds for the created iterator.

This fixes #12963.

@rhubner
Copy link
Contributor

rhubner commented Aug 27, 2024

Hello @tillrohrmann and thanks for the PR.

I think your code make sense. Do you think you will be able to add test for C API. We are trying to improve C API for RocksDB and one part of it is better code coverage.

Radek

@tillrohrmann
Copy link
Author

@rhubner sure. I'll make sure to add the required test coverage and let you know once I'm done with it.

@tillrohrmann
Copy link
Author

@rhubner, I've added tests for rocksdb_writebatch_wi_create_iterator_with_base_readopts and rocksdb_writebatch_wi_create_iterator_with_base_cf_readopts. Let me know whether this is sufficient.

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.

Support specifying ReadOptions when creating a WriteBatchWithIndex iterator in C bindings
3 participants