Skip to content

Commit 8426c74

Browse files
committed
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.
1 parent 49ab50f commit 8426c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ buf_madvise_do_dump()
10211021
ret+= madvise(chunk->mem, chunk->mem_size(), MADV_DODUMP);
10221022
}
10231023

1024-
mysql_mutex_lock(&buf_pool.mutex);
1024+
mysql_mutex_unlock(&buf_pool.mutex);
10251025
return ret;
10261026
}
10271027
#endif

0 commit comments

Comments
 (0)