Closed laurynas-biveinis closed 2 months ago
Unfortunately there is a small conflict with https://github.com/facebook/mysql-5.6/pull/1444, the second PR to go in will have to be rebased
Fixed incorrect move ctor/assignment operator signatures and rebased
@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
could you also update storage/rocksdb/rdb_vector_db.cc
storage/rocksdb/rdb_vector_db.cc:192:22: error: no matching function for call to 'rdb_tx_get_iterator' m_iterator.reset(rdb_tx_get_iterator(
@laurynas-biveinis has updated the pull request. You must reimport the pull request before landing.
could you also update storage/rocksdb/rdb_vector_db.cc
storage/rocksdb/rdb_vector_db.cc:192:22: error: no matching function for call to 'rdb_tx_get_iterator' m_iterator.reset(rdb_tx_get_iterator(
Today I learned about -DWITH_FB_VECTORDB=ON build, and it looks like I'll have to do some PRs for it as well. I was able to make the changes, but it's possible I missed something, please let me know.
Rebased too
@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
In storage/rocksdb/ha_rocksdb.cc:
m_key_merge.emplace(
std::piecewise_construct, std::make_tuple(kd_gl_id),
- std::make_tuple(
- get_rocksdb_tmpdir(), THDVAR(get_thd(), merge_buf_size),
- THDVAR(get_thd(), merge_combine_read_size),
- THDVAR(get_thd(), merge_tmp_file_removal_delay_ms), cf));
- std::make_tuple(get_rocksdb_tmpdir(), THDVAR(thd, merge_buf_size),
- THDVAR(thd, merge_combine_read_size),
- THDVAR(thd, merge_tmp_file_removal_delay_ms),
- std::ref(cf)));
why do we need std::ref? since cf is already a reference type
Without std::ref, the compiler apparently trys to instantiate std::tuple<..., ColumnFamilyHandle>, and gets an error that ColumnFamilyHandle is an abstract class
This pull request has been merged in facebook/mysql-5.6@b09f052510c5ac360fb6e30ef3f24ab2d915a7f2.
In preparation for the range locking patch, clean up some code related to iterators: