Skip to content

Commit a0c51d0

Browse files
committed
common/io_exerciser: Modify is_locked_by_me call in ceph_test_rados_io_sequence
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>
1 parent 5463de6 commit a0c51d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/io_exerciser/RadosIo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RadosIo::AsyncOpInfo::AsyncOpInfo(uint64_t offset1, uint64_t length1,
8181

8282
bool RadosIo::readyForIoOp(IoOp &op)
8383
{
84-
ceph_assert(lock.is_locked_by_me()); //Must be called with lock held
84+
ceph_assert(ceph_mutex_is_locked_by_me(lock)); //Must be called with lock held
8585
if (!om->readyForIoOp(op)) {
8686
return false;
8787
}

0 commit comments

Comments
 (0)