Commit f8bae00a authored by Yasufumi Kinoshita's avatar Yasufumi Kinoshita

Bug #13702112 : WAIT_FOR_READ IS STUCK IN THE 90S

rb://1334
approved by: Inaam Rana
parent c55dd6bd
...@@ -241,7 +241,7 @@ the read requests for the whole area. ...@@ -241,7 +241,7 @@ the read requests for the whole area.
#ifndef UNIV_HOTBACKUP #ifndef UNIV_HOTBACKUP
/** Value in microseconds */ /** Value in microseconds */
static const int WAIT_FOR_READ = 5000; static const int WAIT_FOR_READ = 100;
/** Number of attemtps made to read in a page in the buffer pool */ /** Number of attemtps made to read in a page in the buffer pool */
static const ulint BUF_PAGE_READ_MAX_RETRIES = 100; static const ulint BUF_PAGE_READ_MAX_RETRIES = 100;
...@@ -1897,8 +1897,9 @@ wait_until_unfixed: ...@@ -1897,8 +1897,9 @@ wait_until_unfixed:
mutex_exit(&block->mutex); mutex_exit(&block->mutex);
if (io_fix == BUF_IO_READ) { if (io_fix == BUF_IO_READ) {
/* wait by temporaly s-latch */
os_thread_sleep(WAIT_FOR_READ); rw_lock_s_lock(&(block->lock));
rw_lock_s_unlock(&(block->lock));
} else { } else {
break; break;
} }
......
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