Skip to content
Permalink
Browse files
MDEV-23399 fixup for MDEV-10814
buf_madvise_do_dump(): Fix a mutex release that was broken in
commit 7cffb5f.
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 b600f30
can be included.
  • Loading branch information
dr-m committed Jun 2, 2021
1 parent 49ab50f commit 8426c74
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1021,7 +1021,7 @@ buf_madvise_do_dump()
ret+= madvise(chunk->mem, chunk->mem_size(), MADV_DODUMP);
}

mysql_mutex_lock(&buf_pool.mutex);
mysql_mutex_unlock(&buf_pool.mutex);
return ret;
}
#endif

0 comments on commit 8426c74

Please sign in to comment.