Skip to content

Commit fcc8f48

Browse files
committed
Fix build failure on mac due to invalid access on private member from rw_lock
1 parent 9436c77 commit fcc8f48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/include/srw_lock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class ssux_lock_impl final
138138
/** @return whether any writer is waiting */
139139
bool is_waiting() const { return (value() & WRITER_WAITING) != 0; }
140140
bool is_write_locked() const { return rw_lock::is_write_locked(); }
141+
bool is_locked_or_waiting() const { return rw_lock::is_locked_or_waiting(); }
141142

142143
bool rd_lock_try() { uint32_t l; return read_trylock(l); }
143144
bool wr_lock_try() { return write_trylock(); }

0 commit comments

Comments
 (0)