Commit b25d2a45 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.4 into 10.5

parents f4425d3a c7ee039d
...@@ -4256,7 +4256,7 @@ dict_set_corrupted( ...@@ -4256,7 +4256,7 @@ dict_set_corrupted(
/* If this is read only mode, do not update SYS_INDEXES, just /* If this is read only mode, do not update SYS_INDEXES, just
mark it as corrupted in memory */ mark it as corrupted in memory */
if (srv_read_only_mode) { if (high_level_read_only) {
index->type |= DICT_CORRUPT; index->type |= DICT_CORRUPT;
goto func_exit; goto func_exit;
} }
......
...@@ -14833,10 +14833,9 @@ ha_innobase::check( ...@@ -14833,10 +14833,9 @@ ha_innobase::check(
/* We must run the index record counts at an isolation level /* We must run the index record counts at an isolation level
>= READ COMMITTED, because a dirty read can see a wrong number >= READ COMMITTED, because a dirty read can see a wrong number
of records in some index; to play safe, we use always of records in some index; to play safe, we normally use
REPEATABLE READ here (except when undo logs are unavailable) */ REPEATABLE READ here */
m_prebuilt->trx->isolation_level = srv_force_recovery m_prebuilt->trx->isolation_level = high_level_read_only
>= SRV_FORCE_NO_UNDO_LOG_SCAN
? TRX_ISO_READ_UNCOMMITTED ? TRX_ISO_READ_UNCOMMITTED
: TRX_ISO_REPEATABLE_READ; : TRX_ISO_REPEATABLE_READ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment