mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
fil0fil.c:
Fix a race condition that could cause the assertion space->n_pending_flushes == 0 to fail in fil0fil.c, in fil_space_free(), in DROP TABLE or in ALTER TABLE
This commit is contained in:
parent
61b50b577e
commit
e30b5f86e5
1 changed files with 2 additions and 1 deletions
|
@ -4139,7 +4139,8 @@ fil_flush_file_spaces(
|
|||
space = UT_LIST_GET_FIRST(system->space_list);
|
||||
|
||||
while (space) {
|
||||
if (space->purpose == purpose) {
|
||||
if (space->purpose == purpose && !space->is_being_deleted) {
|
||||
|
||||
space->n_pending_flushes++; /* prevent dropping of the
|
||||
space while we are
|
||||
flushing */
|
||||
|
|
Loading…
Reference in a new issue