summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-08-24 15:00:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-08-24 15:00:47 +0300
commitf2a53b6158a9c641e5dde679e45c7ff721902e77 (patch)
tree2657e62a9e4924cb8b1c9b9096de8aba8bef90d3
parent61f456e772cc3d907a3b7881dc4dfb7edc1401d5 (diff)
downloadmariadb-git-f2a53b6158a9c641e5dde679e45c7ff721902e77.tar.gz
btr_search_drop_page_hash_index(): Remove a racey debug check
-rw-r--r--storage/innobase/btr/btr0sea.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/innobase/btr/btr0sea.cc b/storage/innobase/btr/btr0sea.cc
index 8cc30de0dd8..4b4bba9a941 100644
--- a/storage/innobase/btr/btr0sea.cc
+++ b/storage/innobase/btr/btr0sea.cc
@@ -2,7 +2,7 @@
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
-Copyright (c) 2017, 2021, MariaDB Corporation.
+Copyright (c) 2017, 2022, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
@@ -1123,9 +1123,6 @@ void btr_search_drop_page_hash_index(buf_block_t* block,
rw_lock_t* latch;
retry:
- /* This debug check uses a dirty read that could theoretically cause
- false positives while buf_pool_clear_hash_index() is executing. */
- assert_block_ahi_valid(block);
ut_ad(!btr_search_own_any(RW_LOCK_S));
ut_ad(!btr_search_own_any(RW_LOCK_X));