]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/io_exerciser: Modify is_locked_by_me call in ceph_test_rados_io_sequence
authorJonBailey1993 <jonathan.bailey1@ibm.com>
Wed, 9 Oct 2024 10:28:42 +0000 (11:28 +0100)
committerJonBailey1993 <jonathan.bailey1@ibm.com>
Wed, 9 Oct 2024 10:28:51 +0000 (11:28 +0100)
commita0c51d0e7f05e84411e3877b5861f3eec26ad934
tree6e738c55fbf4c228606af8371a76af50f36fc6d1
parent5463de65348f2e103179ea46953dd4a0e414fd39
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>
src/common/io_exerciser/RadosIo.cc