Commit 92046ba2 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-25506 fixup: Correct a bogus comment

Since commit 1bd681c8 tablespaces are
dropped after the table has been dropped. No dict_sys latch protection
is relevant during the execution of fil_delete_tablespace().
parent 72764b2f
...@@ -3056,8 +3056,7 @@ fil_space_validate_for_mtr_commit( ...@@ -3056,8 +3056,7 @@ fil_space_validate_for_mtr_commit(
/* We are serving mtr_commit(). While there is an active /* We are serving mtr_commit(). While there is an active
mini-transaction, we should have !space->stop_new_ops. This is mini-transaction, we should have !space->stop_new_ops. This is
guaranteed by meta-data locks or transactional locks, or guaranteed by meta-data locks or transactional locks. */
dict_sys.latch (X-lock in DROP, S-lock in purge). */
ut_ad(!space->is_stopping() ut_ad(!space->is_stopping()
|| space->is_being_truncated /* fil_truncate_prepare() */ || space->is_being_truncated /* fil_truncate_prepare() */
|| space->referenced()); || space->referenced());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment