is_locked_by_me() is a function of ceph::mutex which is only used in debug builds. By using the ceph_mutex_is_locked_by_me macro, we can neatly make sure we only run this function in debug mode, allowing compilation to no longer be affected when running in release mode.
Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
bool RadosIo::readyForIoOp(IoOp &op)
{
- ceph_assert(lock.is_locked_by_me()); //Must be called with lock held
+ ceph_assert(ceph_mutex_is_locked_by_me(lock)); //Must be called with lock held
if (!om->readyForIoOp(op)) {
return false;
}