]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados/aio_cxx: Fix potential mutex destruction failure on PoolEIOFlag 64087/head
authorNitzan Mordechai <nmordech@redhat.com>
Sun, 22 Jun 2025 13:43:55 +0000 (13:43 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 22 Jun 2025 13:43:59 +0000 (13:43 +0000)
commit26e7bbf68142419d9e2991099e42853c1a7339b4
treea2b2f9478c3eac0bd9bab39b0b8db2fd1dd5766b
parent04ae51723f3e64a68dd5544dcfada15cd3d45c48
test/librados/aio_cxx: Fix potential mutex destruction failure on PoolEIOFlag

GTEST_SKIP() does not return and causes early test exit, which
skips any following cleanup logic.
In this case, the test skipped before releasing my_lock, causing
pthread_mutex_destroy() to fail with EBUSY and trigger a ceph_assert()
in the mutex debug wrapper.
Fix by explicitly unlocking the mutex before calling GTEST_SKIP().

Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
src/test/librados/aio_cxx.cc