mirror of
https://github.com/MariaDB/server.git
synced 2025-10-27 05:56:07 +03:00
In sync_close() fix a bug introduced by the fix for Bug #59683 where we iterate
over the mutex list and free each mutex. When UNIV_MEM_DEBUG is defined, we need skip the hash mutex. It is a minor bug affecting only UNIV_SYNC_DEBUG builds, found by Michael.
This commit is contained in:
@@ -1506,7 +1506,7 @@ sync_close(void)
|
|||||||
|
|
||||||
for (mutex = UT_LIST_GET_FIRST(mutex_list);
|
for (mutex = UT_LIST_GET_FIRST(mutex_list);
|
||||||
mutex != NULL;
|
mutex != NULL;
|
||||||
mutex = UT_LIST_GET_FIRST(mutex_list)) {
|
/* No op */) {
|
||||||
|
|
||||||
#ifdef UNIV_MEM_DEBUG
|
#ifdef UNIV_MEM_DEBUG
|
||||||
if (mutex == &mem_hash_mutex) {
|
if (mutex == &mem_hash_mutex) {
|
||||||
@@ -1516,6 +1516,8 @@ sync_close(void)
|
|||||||
#endif /* UNIV_MEM_DEBUG */
|
#endif /* UNIV_MEM_DEBUG */
|
||||||
|
|
||||||
mutex_free(mutex);
|
mutex_free(mutex);
|
||||||
|
|
||||||
|
mutex = UT_LIST_GET_FIRST(mutex_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_free(&mutex_list_mutex);
|
mutex_free(&mutex_list_mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user