mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Update to innoplug-1.0.4.
This commit is contained in:
@@ -484,11 +484,13 @@ spin_loop:
|
||||
if (i == SYNC_SPIN_ROUNDS) {
|
||||
#ifdef UNIV_DEBUG
|
||||
mutex->count_os_yield++;
|
||||
if (timed_mutexes == 1 && timer_started==0) {
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
if (timed_mutexes && timer_started == 0) {
|
||||
ut_usectime(&sec, &ms);
|
||||
lstart_time= (ib_int64_t)sec * 1000000 + ms;
|
||||
timer_started = 1;
|
||||
}
|
||||
#endif /* UNIV_HOTBACKUP */
|
||||
#endif /* UNIV_DEBUG */
|
||||
os_thread_yield();
|
||||
}
|
||||
@@ -583,12 +585,13 @@ spin_loop:
|
||||
mutex->count_os_wait++;
|
||||
#ifdef UNIV_DEBUG
|
||||
/* !!!!! Sometimes os_wait can be called without os_thread_yield */
|
||||
|
||||
if (timed_mutexes == 1 && timer_started==0) {
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
if (timed_mutexes == 1 && timer_started == 0) {
|
||||
ut_usectime(&sec, &ms);
|
||||
lstart_time= (ib_int64_t)sec * 1000000 + ms;
|
||||
timer_started = 1;
|
||||
}
|
||||
#endif /* UNIV_HOTBACKUP */
|
||||
#endif /* UNIV_DEBUG */
|
||||
|
||||
sync_array_wait_event(sync_primary_wait_array, index);
|
||||
|
Reference in New Issue
Block a user