Allow specifying ReadOptions for WBWI iterator
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.
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
@rhubner sure. I'll make sure to add the required test coverage and let you know once I'm done with it.
@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.
@rhubner is there anything else needed before merging this PR?
@rhubner let me know if there is anything else missing for merging this PR.
I've rebased this PR onto the latest main. @rhubner are there other things missing? It would help us a lot to get this C API extension merged since our project relies on it and now we have to maintain our own fork of RocksDB.
@cbi42, @jaykorean could you maybe help with moving this PR forward? I've seen that you've been actively reviewing C API related PRs recently.
@jaykorean has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@tillrohrmann Thanks for the contribution. I just imported this PR for internal review. Once approved, I will merge it and let you know. Thanks!
@jaykorean merged this pull request in facebook/rocksdb@947a63400f201e49d16bde3af4c89a996f49c3f0.