Skip to content
Permalink
Browse files
Fixed build failure
  • Loading branch information
Sergey Vojtovich committed Oct 11, 2017
1 parent 62b21fc commit 7d2a778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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);

0 comments on commit 7d2a778

Please sign in to comment.