Browse Source
Remove the unnecessary method handlerton::release_temporary_latches()
Remove the unnecessary method handlerton::release_temporary_latches()
The sole purpose of handlerton::release_temporary_latches and its wrapper function was to release the InnoDB adaptive hash index latch (btr_search_latch). When the btr_search_latch was split into an array of latches in MySQL 5.7.8 as part of the Oracle Bug#20985298 fix, the "caching" of the latch across storage engine API calls was removed. As part of that, the function trx_search_latch_release_if_reserved() was changed to an assertion and the function trx_reserve_search_latch_if_not_reserved() was removed, and handlerton::release_temporary_latches() practically became a no-op. Note: MDEV-12121 replaced the function trx_search_latch_release_if_reserved() with the more appropriately named macro trx_assert_no_search_latch().pull/403/merge
11 changed files with 9 additions and 197 deletions
-
6sql/filesort.cc
-
38sql/handler.cc
-
4sql/handler.h
-
8sql/sql_cache.cc
-
14sql/sql_class.cc
-
5sql/sql_insert.cc
-
60storage/innobase/handler/ha_innodb.cc
-
12storage/innobase/handler/ha_innodb.h
-
14storage/innobase/handler/ha_innopart.cc
-
3storage/myisam/ha_myisam.cc
-
42storage/xtradb/handler/ha_innodb.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue