MDEV-23399 fixup for MDEV-10814

buf_madvise_do_dump(): Fix a mutex release that was broken in
commit 7cffb5f6e8a231a041152447be8980ce35d2c9b8.
This function is not covered by any tests. Its only purpose is
to be called from a debugger so that buffers that would normally
be excluded from core dumps ever since
commit b600f30786816e33c1706dd36cdabf21034dc781
can be included.
This commit is contained in:
Marko Mäkelä 2021-06-02 08:48:09 +03:00
parent 49ab50f882
commit 8426c7411b

View File

@ -1021,7 +1021,7 @@ buf_madvise_do_dump()
ret+= madvise(chunk->mem, chunk->mem_size(), MADV_DODUMP); ret+= madvise(chunk->mem, chunk->mem_size(), MADV_DODUMP);
} }
mysql_mutex_lock(&buf_pool.mutex); mysql_mutex_unlock(&buf_pool.mutex);
return ret; return ret;
} }
#endif #endif