Bug #13702112 : WAIT_FOR_READ IS STUCK IN THE 90S
rb://1334 approved by: Inaam Rana
This commit is contained in:
parent
c55dd6bd4a
commit
f8bae00ab1
@ -241,7 +241,7 @@ the read requests for the whole area.
|
||||
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
/** 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 */
|
||||
static const ulint BUF_PAGE_READ_MAX_RETRIES = 100;
|
||||
|
||||
@ -1897,8 +1897,9 @@ wait_until_unfixed:
|
||||
mutex_exit(&block->mutex);
|
||||
|
||||
if (io_fix == BUF_IO_READ) {
|
||||
|
||||
os_thread_sleep(WAIT_FOR_READ);
|
||||
/* wait by temporaly s-latch */
|
||||
rw_lock_s_lock(&(block->lock));
|
||||
rw_lock_s_unlock(&(block->lock));
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user