Commit 36b6127
Index read fixes (percona#1292)
Upstream commit ID: facebook/mysql-5.6@4c5fa16
PS-8951: Merge percona-202305 (https://jira.percona.com/browse/PS-8951)
Summary:
Minor index access cleanups for MyRocks:
- `ha_rocksdb::index_init`: remove duplicate `active_index` assignment. Move
`m_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 for `active_index` value to prevent
out-of-bound accesses in the next line.
Pull Request resolved: facebook/mysql-5.6#1292
Reviewed By: sunshine-Chun
Differential Revision: D45277614
Pulled By: hermanlee
fbshipit-source-id: 8624b6e99a85065f6fda2da126c7935294baebee1 parent 3056cfa commit 36b6127
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9928 | 9928 | | |
9929 | 9929 | | |
9930 | 9930 | | |
| 9931 | + | |
9931 | 9932 | | |
9932 | 9933 | | |
9933 | 9934 | | |
| |||
11472 | 11473 | | |
11473 | 11474 | | |
11474 | 11475 | | |
11475 | | - | |
11476 | | - | |
11477 | | - | |
11478 | 11476 | | |
11479 | 11477 | | |
11480 | 11478 | | |
| |||
11483 | 11481 | | |
11484 | 11482 | | |
11485 | 11483 | | |
| 11484 | + | |
| 11485 | + | |
11486 | 11486 | | |
11487 | 11487 | | |
11488 | 11488 | | |
| |||
0 commit comments