Skip to content

Commit

Permalink
Fix build failure on mac due to invalid access on private member from…
Browse files Browse the repository at this point in the history
… rw_lock
  • Loading branch information
robertbindar committed Nov 24, 2021
1 parent 9436c77 commit fcc8f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/include/srw_lock.h
Expand Up @@ -138,6 +138,7 @@ class ssux_lock_impl final
/** @return whether any writer is waiting */
bool is_waiting() const { return (value() & WRITER_WAITING) != 0; }
bool is_write_locked() const { return rw_lock::is_write_locked(); }
bool is_locked_or_waiting() const { return rw_lock::is_locked_or_waiting(); }

bool rd_lock_try() { uint32_t l; return read_trylock(l); }
bool wr_lock_try() { return write_trylock(); }
Expand Down

0 comments on commit fcc8f48

Please sign in to comment.