summaryrefslogtreecommitdiff
path: root/storage/innobase/include/fil0fil.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-12-16 10:54:33 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-12-16 10:54:33 +0200
commit8bddaddc6fcd4f146252c2dc149ecbc51cd6c788 (patch)
treef5c359b1c9ab641ee139fcb8c2d83a93dec8e7d0 /storage/innobase/include/fil0fil.h
parent89480340ba7eabfaff1ea8f51437324cb3d5964f (diff)
parent84774de49af133b6e702e51c0b0e69173a0594cd (diff)
downloadmariadb-git-8bddaddc6fcd4f146252c2dc149ecbc51cd6c788.tar.gz
Merge 10.7 into 10.8
Diffstat (limited to 'storage/innobase/include/fil0fil.h')
-rw-r--r--storage/innobase/include/fil0fil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h
index 09626569f09..940e1b68458 100644
--- a/storage/innobase/include/fil0fil.h
+++ b/storage/innobase/include/fil0fil.h
@@ -1534,9 +1534,10 @@ template<bool have_reference> inline void fil_space_t::flush()
}
else if (have_reference)
flush_low();
- else if (!(acquire_low() & STOPPING))
+ else
{
- flush_low();
+ if (!(acquire_low() & (STOPPING | CLOSING)))
+ flush_low();
release();
}
}