Commit 7d2a7782 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed build failure

parent 62b21fc1
......@@ -415,7 +415,7 @@ rw_lock_x_unlock_func(
We need to signal read/write waiters.
We do not need to signal wait_ex waiters, since they cannot
exist when there is a writer. */
if (my_atomic_load32_explicit(&lock->waiters,
if (my_atomic_load32_explicit((int32*) &lock->waiters,
MY_MEMORY_ORDER_RELAXED)) {
my_atomic_store32((int32*) &lock->waiters, 0);
os_event_set(lock->event);
......
......@@ -884,7 +884,7 @@ rw_lock_validate(
MY_MEMORY_ORDER_RELAXED);
ut_ad(lock->magic_n == RW_LOCK_MAGIC_N);
ut_ad(my_atomic_load32_explicit(&lock->waiters,
ut_ad(my_atomic_load32_explicit((int32*) &lock->waiters,
MY_MEMORY_ORDER_RELAXED) < 2);
ut_ad(lock_word > -(2 * X_LOCK_DECR));
ut_ad(lock_word <= X_LOCK_DECR);
......
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