Closed laurynas-biveinis closed 1 year ago
Let me backport the first two patches directly, and then we can rebase this PR so that it contains only the MyRocks changes.
Right, I forgot about the squashing
Rebased, ready for review
@hermanlee has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Minor index access cleanups for MyRocks:
ha_rocksdb::index_init
: remove duplicateactive_index
assignment. Movem_need_build_decoder
assignment past the error exit so that taking it does not result in any state changes.ha_rocksdb::index_next_same
: add an assert foractive_index
value to prevent out-of-bound accesses in the next line.