Commit c695ccd2 authored by unknown's avatar unknown
Browse files

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


innobase/fil/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()
parent b5778c1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */