Skip to content

Commit f2a53b6

Browse files
committed
btr_search_drop_page_hash_index(): Remove a racey debug check
1 parent 61f456e commit f2a53b6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

storage/innobase/btr/btr0sea.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
44
Copyright (c) 2008, Google Inc.
5-
Copyright (c) 2017, 2021, MariaDB Corporation.
5+
Copyright (c) 2017, 2022, MariaDB Corporation.
66
77
Portions of this file contain modifications contributed and copyrighted by
88
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,
11231123
rw_lock_t* latch;
11241124

11251125
retry:
1126-
/* This debug check uses a dirty read that could theoretically cause
1127-
false positives while buf_pool_clear_hash_index() is executing. */
1128-
assert_block_ahi_valid(block);
11291126
ut_ad(!btr_search_own_any(RW_LOCK_S));
11301127
ut_ad(!btr_search_own_any(RW_LOCK_X));
11311128

0 commit comments

Comments
 (0)