mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Merge mysql-5.1-innodb to mysql-5.5-innodb.
This commit is contained in:
commit
12a54ac5d7
2 changed files with 8 additions and 4 deletions
|
@ -408,7 +408,7 @@ mlog_parse_string(
|
|||
ptr += 2;
|
||||
|
||||
if (UNIV_UNLIKELY(offset >= UNIV_PAGE_SIZE)
|
||||
|| UNIV_UNLIKELY(len + offset) > UNIV_PAGE_SIZE) {
|
||||
|| UNIV_UNLIKELY(len + offset > UNIV_PAGE_SIZE)) {
|
||||
recv_sys->found_corrupt_log = TRUE;
|
||||
|
||||
return(NULL);
|
||||
|
|
|
@ -669,11 +669,15 @@ row_vers_build_for_semi_consistent_read(
|
|||
|
||||
mutex_enter(&kernel_mutex);
|
||||
version_trx = trx_get_on_id(version_trx_id);
|
||||
if (version_trx
|
||||
&& (version_trx->conc_state == TRX_COMMITTED_IN_MEMORY
|
||||
|| version_trx->conc_state == TRX_NOT_STARTED)) {
|
||||
|
||||
version_trx = NULL;
|
||||
}
|
||||
mutex_exit(&kernel_mutex);
|
||||
|
||||
if (!version_trx
|
||||
|| version_trx->conc_state == TRX_NOT_STARTED
|
||||
|| version_trx->conc_state == TRX_COMMITTED_IN_MEMORY) {
|
||||
if (!version_trx) {
|
||||
|
||||
/* We found a version that belongs to a
|
||||
committed transaction: return it. */
|
||||
|
|
Loading…
Reference in a new issue