1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
This commit is contained in:
Marko Mäkelä
2026-10-12 16:27:50 +03:00
parent 4898afa8c1
commit c1d5d9b31d

View File

@@ -1289,7 +1289,11 @@ public:
void archive_create(lsn_t lsn, lsn_t file_size) noexcept
{
ut_ad(log_sys.latch_have_any());
if (ctx.state == PROCESSING)
if (ctx.state == PROCESSING &&
#ifdef HAVE_PMEM
!log_sys.is_mmap() &&
#endif
true)
{
mutex.wr_lock();
if (ctx.state == PROCESSING && ctx.last_lsn > lsn &&