[Commits] b9b6ca04c17: Apply patch: Merge index scan with index reads

psergey sergey at mariadb.com
Mon May 17 17:15:49 EEST 2021

revision-id: b9b6ca04c17cde7d866e1dd21ad926cefadcecee (percona-202102-48-gb9b6ca04c17)
parent(s): b345ab69f4c44dec6e94865ec6d43178159a4fa6
author: Sergei Petrunia
committer: Sergei Petrunia
timestamp: 2021-05-17 17:15:44 +0300

Apply patch: Merge index scan with index reads

This merges index scans with index lookups. This is so that the codepaths to perform retry with snapshot refresh are consolidated into one location.

Also, in `position_to_correct_key`, I save a redundant call to `pack_index_tuple` since we just packed it earlier. To do this, the packed tuple is saved in `m_sk_match_prefix_buf`.

Test Plan: mtr

Reviewers: luqun, herman, yzha

Subscribers: pgl, vinaybhat

Differential Revision: https://phabricator.intern.facebook.com/D23358423

 storage/rocksdb/ha_rocksdb.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/storage/rocksdb/ha_rocksdb.h b/storage/rocksdb/ha_rocksdb.h
index b5f5ad23d90..0d366b92c67 100644
--- a/storage/rocksdb/ha_rocksdb.h
+++ b/storage/rocksdb/ha_rocksdb.h
@@ -279,7 +279,6 @@ class ha_rocksdb : public my_core::handler {
   /* We only iterate but don't need to decode anything */
   bool m_iteration_only;
   bool m_rnd_scan_started;

More information about the commits mailing list