mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
Bug#59354 : Bug #12659252 : ASSERT !OTHER_LOCK AT LOCK_REC_ADD_TO_QUEUE DURING A DELETE OPERATION
The converted implicit lock should wait for the prior conflicting lock if found. rb://1437 approved by Marko
This commit is contained in:
@@ -85,6 +85,7 @@ Created 10/8/1995 Heikki Tuuri
|
||||
#include "ha_prototypes.h"
|
||||
#include "trx0i_s.h"
|
||||
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
|
||||
#include "read0read.h"
|
||||
|
||||
#ifdef __WIN__
|
||||
/* error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr */
|
||||
@@ -1983,6 +1984,16 @@ srv_export_innodb_status(void)
|
||||
export_vars.innodb_purge_trx_id_age =
|
||||
ut_dulint_minus(trx_sys->max_trx_id, purge_sys->done_trx_no);
|
||||
}
|
||||
|
||||
if (!purge_sys->view
|
||||
|| ut_dulint_cmp(trx_sys->max_trx_id,
|
||||
purge_sys->view->up_limit_id) < 0) {
|
||||
export_vars.innodb_purge_view_trx_id_age = 0;
|
||||
} else {
|
||||
export_vars.innodb_purge_view_trx_id_age =
|
||||
ut_dulint_minus(trx_sys->max_trx_id,
|
||||
purge_sys->view->up_limit_id);
|
||||
}
|
||||
#endif /* UNIV_DEBUG */
|
||||
|
||||
mutex_exit(&srv_innodb_monitor_mutex);
|
||||
|
||||
Reference in New Issue
Block a user