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
parent 61b50b57
...@@ -4139,7 +4139,8 @@ fil_flush_file_spaces( ...@@ -4139,7 +4139,8 @@ fil_flush_file_spaces(
space = UT_LIST_GET_FIRST(system->space_list); space = UT_LIST_GET_FIRST(system->space_list);
while (space) { while (space) {
if (space->purpose == purpose) { if (space->purpose == purpose && !space->is_being_deleted) {
space->n_pending_flushes++; /* prevent dropping of the space->n_pending_flushes++; /* prevent dropping of the
space while we are space while we are
flushing */ flushing */
......
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