summaryrefslogtreecommitdiff
path: root/storage/innobase/include/dict0mem.h
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-08-19 16:46:01 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-08-21 12:38:10 +0530
commit08e5a3d2e3e0ee98a22f58adb9f76c686ba94a8a (patch)
treedb0188b34aa11f13d1aa52429d874c523c7737cc /storage/innobase/include/dict0mem.h
parent557bb344e44d1fdba13325c1e3bfa8c775851f07 (diff)
downloadmariadb-git-08e5a3d2e3e0ee98a22f58adb9f76c686ba94a8a.tar.gz
MDEV-26383 ASAN heap-use-after-free failure in btr_search_lazy_free
Problem: ======= The last AHI page for two indexes of an dropped table is being freed at the same time by two threads. One thread frees the table heap and other thread tries to access table heap again. It leads to asan failure in btr_search_lazy_free(). Solution: ======== InnoDB uses autoinc_mutex to avoid the race condition in btr_search_lazy_free()
Diffstat (limited to 'storage/innobase/include/dict0mem.h')
-rw-r--r--storage/innobase/include/dict0mem.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h
index 5424b38a927..78244e2f6cb 100644
--- a/storage/innobase/include/dict0mem.h
+++ b/storage/innobase/include/dict0mem.h
@@ -1912,7 +1912,6 @@ struct dict_table_t {
determine whether we can evict the table from the dictionary cache.
It is protected by lock_sys->mutex. */
ulint n_rec_locks;
-
private:
/** Count of how many handles are opened to this table. Dropping of the
table is NOT allowed until this count gets to zero. MySQL does NOT