Commit 862eccd5 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26769 fixup: Fix the SUX_LOCK_GENERIC build

parent 0a168398
......@@ -191,10 +191,8 @@ class page_hash_latch : private rw_lock
/** Acquire an exclusive lock */
inline void lock();
#ifdef UNIV_DEBUG
/** @return whether an exclusive lock is being held by any thread */
bool is_write_locked() const { return rw_lock::is_write_locked(); }
#endif
/** @return whether any lock is being held by any thread */
bool is_locked() const { return rw_lock::is_locked(); }
......
......@@ -137,6 +137,7 @@ class ssux_lock_impl final
void destroy();
/** @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 rd_lock_try() { uint32_t l; return read_trylock(l); }
bool wr_lock_try() { return write_trylock(); }
......
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