Commit 42b5b75
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 279d0f7 commit 42b5b75
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9862 | 9862 | | |
9863 | 9863 | | |
9864 | 9864 | | |
| 9865 | + | |
9865 | 9866 | | |
9866 | 9867 | | |
9867 | 9868 | | |
| |||
11406 | 11407 | | |
11407 | 11408 | | |
11408 | 11409 | | |
11409 | | - | |
11410 | | - | |
11411 | | - | |
11412 | 11410 | | |
11413 | 11411 | | |
11414 | 11412 | | |
| |||
11417 | 11415 | | |
11418 | 11416 | | |
11419 | 11417 | | |
| 11418 | + | |
| 11419 | + | |
11420 | 11420 | | |
11421 | 11421 | | |
11422 | 11422 | | |
| |||
0 commit comments