diff options
-rw-r--r-- | src/common/ceph_context.cc | 2 | ||||
-rw-r--r-- | src/common/cohort_lru.h | 2 | ||||
-rw-r--r-- | src/rgw/rgw_auth.cc | 8 | ||||
-rw-r--r-- | src/rgw/rgw_file.cc | 2 | ||||
-rw-r--r-- | src/rgw/rgw_lib.h | 2 | ||||
-rw-r--r-- | src/test/libcephfs/flock.cc | 4 | ||||
-rw-r--r-- | src/test/libcephfs/recordlock.cc | 4 | ||||
-rw-r--r-- | src/test/librgw_file_nfsns.cc | 2 | ||||
-rw-r--r-- | src/test/messenger/simple_dispatcher.cc | 2 | ||||
-rw-r--r-- | src/test/messenger/xio_dispatcher.cc | 2 | ||||
-rw-r--r-- | src/test/rgw/test_rgw_iam_policy.cc | 8 | ||||
-rw-r--r-- | src/test/system/cross_process_sem.cc | 6 |
12 files changed, 25 insertions, 19 deletions
diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index 51d97e8199a..861e78dc51f 100644 --- a/src/common/ceph_context.cc +++ b/src/common/ceph_context.cc @@ -397,7 +397,7 @@ void CephContext::do_command(std::string_view command, const cmdmap_t& cmdmap, ceph_assert(0 == "assert"); } if (command == "abort" && _conf->debug_asok_assert_abort) { - abort(); + ceph_abort(); } if (command == "perfcounters_dump" || command == "1" || command == "perf dump") { diff --git a/src/common/cohort_lru.h b/src/common/cohort_lru.h index db28a582779..5dbd112981a 100644 --- a/src/common/cohort_lru.h +++ b/src/common/cohort_lru.h @@ -256,7 +256,7 @@ namespace cohort { lane.q.push_back(*o); break; default: - abort(); + ceph_abort(); break; } if (flags & FLAG_INITIAL) diff --git a/src/rgw/rgw_auth.cc b/src/rgw/rgw_auth.cc index d861e17cf7f..d9c4e64ca86 100644 --- a/src/rgw/rgw_auth.cc +++ b/src/rgw/rgw_auth.cc @@ -140,7 +140,7 @@ strategy_handle_rejected(rgw::auth::Engine::result_t&& engine_result, default: /* Huh, memory corruption? */ - abort(); + ceph_abort(); } } @@ -164,7 +164,7 @@ strategy_handle_denied(rgw::auth::Engine::result_t&& engine_result, default: /* Huh, memory corruption? */ - abort(); + ceph_abort(); } } @@ -189,7 +189,7 @@ strategy_handle_granted(rgw::auth::Engine::result_t&& engine_result, default: /* Huh, memory corruption? */ - abort(); + ceph_abort(); } } @@ -240,7 +240,7 @@ rgw::auth::Strategy::authenticate(const req_state* const s) const break; } default: { - abort(); + ceph_abort(); } } diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 12aa9da3b76..9a163bafbd4 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -481,7 +481,7 @@ namespace rgw { } goto out; default: - abort(); + ceph_abort(); } /* switch */ } /* ix */ unlock: diff --git a/src/rgw/rgw_lib.h b/src/rgw/rgw_lib.h index 1757ad4a7b9..0225d79e3c8 100644 --- a/src/rgw/rgw_lib.h +++ b/src/rgw/rgw_lib.h @@ -203,7 +203,7 @@ namespace rgw { inline RGWRados* get_store() { return store; } - virtual int execute() final { abort(); } + virtual int execute() final { ceph_abort(); } virtual int exec_start() = 0; virtual int exec_continue() = 0; virtual int exec_finish() = 0; diff --git a/src/test/libcephfs/flock.cc b/src/test/libcephfs/flock.cc index 4ee4bc0c29c..a02322358c7 100644 --- a/src/test/libcephfs/flock.cc +++ b/src/test/libcephfs/flock.cc @@ -37,6 +37,8 @@ #include <limits.h> #endif +#include "include/assert.h" + // Startup common: create and mount ceph fs #define STARTUP_CEPH() do { \ ASSERT_EQ(0, ceph_create(&cmount, NULL)); \ @@ -61,7 +63,7 @@ static const long waitSlowMs = 5000; // Get the absolute struct timespec reference from now + 'ms' milliseconds static const struct timespec* abstime(struct timespec &ts, long ms) { if (clock_gettime(CLOCK_REALTIME, &ts) == -1) { - abort(); + ceph_abort(); } ts.tv_nsec += ms * 1000000; ts.tv_sec += ts.tv_nsec / 1000000000; diff --git a/src/test/libcephfs/recordlock.cc b/src/test/libcephfs/recordlock.cc index 5a18c5126d0..a4830e68e06 100644 --- a/src/test/libcephfs/recordlock.cc +++ b/src/test/libcephfs/recordlock.cc @@ -38,6 +38,8 @@ #include <limits.h> #endif +#include "include/assert.h" + // Startup common: create and mount ceph fs #define STARTUP_CEPH() do { \ ASSERT_EQ(0, ceph_create(&cmount, NULL)); \ @@ -62,7 +64,7 @@ static const long waitSlowMs = 5000; // Get the absolute struct timespec reference from now + 'ms' milliseconds static const struct timespec* abstime(struct timespec &ts, long ms) { if (clock_gettime(CLOCK_REALTIME, &ts) == -1) { - abort(); + ceph_abort(); } ts.tv_nsec += ms * 1000000; ts.tv_sec += ts.tv_nsec / 1000000000; diff --git a/src/test/librgw_file_nfsns.cc b/src/test/librgw_file_nfsns.cc index c76555b7208..2ba411ccfc5 100644 --- a/src/test/librgw_file_nfsns.cc +++ b/src/test/librgw_file_nfsns.cc @@ -942,7 +942,7 @@ TEST(LibRGW, HIER1) { obj_stack.pop(); break; default: - abort(); + ceph_abort(); }; } } diff --git a/src/test/messenger/simple_dispatcher.cc b/src/test/messenger/simple_dispatcher.cc index 5a9287d91e6..b13958d3686 100644 --- a/src/test/messenger/simple_dispatcher.cc +++ b/src/test/messenger/simple_dispatcher.cc @@ -53,7 +53,7 @@ bool SimpleDispatcher::ms_dispatch(Message *m) } break; default: - abort(); + ceph_abort(); } if (unlikely(msgr->get_magic() & MSG_MAGIC_TRACE_CTR)) { diff --git a/src/test/messenger/xio_dispatcher.cc b/src/test/messenger/xio_dispatcher.cc index b682609fb0f..ccd26dafec0 100644 --- a/src/test/messenger/xio_dispatcher.cc +++ b/src/test/messenger/xio_dispatcher.cc @@ -47,7 +47,7 @@ bool XioDispatcher::ms_dispatch(Message *m) } break; default: - abort(); + ceph_abort(); } if (unlikely(m->get_magic() & MSG_MAGIC_TRACE_CTR)) { diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc index bd058c33fe6..aeddf7d1927 100644 --- a/src/test/rgw/test_rgw_iam_policy.cc +++ b/src/test/rgw/test_rgw_iam_policy.cc @@ -86,22 +86,22 @@ public: explicit FakeIdentity(Principal&& id) : id(std::move(id)) {} uint32_t get_perms_from_aclspec(const aclspec_t& aclspec) const override { - abort(); + ceph_abort(); return 0; }; bool is_admin_of(const rgw_user& uid) const override { - abort(); + ceph_abort(); return false; } bool is_owner_of(const rgw_user& uid) const override { - abort(); + ceph_abort(); return false; } virtual uint32_t get_perm_mask() const override { - abort(); + ceph_abort(); return 0; } diff --git a/src/test/system/cross_process_sem.cc b/src/test/system/cross_process_sem.cc index 5785a6626b0..8b89d47bbfd 100644 --- a/src/test/system/cross_process_sem.cc +++ b/src/test/system/cross_process_sem.cc @@ -19,6 +19,8 @@ #include <stdlib.h> #include <sys/mman.h> +#include "include/assert.h" + /* We put our cross-process semaphore into a page of memory mapped with mmap. */ struct cross_process_sem_data_t { @@ -66,7 +68,7 @@ wait() int err = errno; if (err == -EINTR) continue; - abort(); + ceph_abort(); } } @@ -75,7 +77,7 @@ post() { int ret = sem_post(&m_data->sem); if (ret == -1) { - abort(); + ceph_abort(); } } |