ceph_assert(0 == "assert");
}
if (command == "abort" && _conf->debug_asok_assert_abort) {
- abort();
+ ceph_abort();
}
if (command == "perfcounters_dump" || command == "1" ||
command == "perf dump") {
lane.q.push_back(*o);
break;
default:
- abort();
+ ceph_abort();
break;
}
if (flags & FLAG_INITIAL)
default:
/* Huh, memory corruption? */
- abort();
+ ceph_abort();
}
}
default:
/* Huh, memory corruption? */
- abort();
+ ceph_abort();
}
}
default:
/* Huh, memory corruption? */
- abort();
+ ceph_abort();
}
}
break;
}
default: {
- abort();
+ ceph_abort();
}
}
}
goto out;
default:
- abort();
+ ceph_abort();
} /* switch */
} /* ix */
unlock:
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;
#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)); \
// 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;
#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)); \
// 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;
obj_stack.pop();
break;
default:
- abort();
+ ceph_abort();
};
}
}
}
break;
default:
- abort();
+ ceph_abort();
}
if (unlikely(msgr->get_magic() & MSG_MAGIC_TRACE_CTR)) {
}
break;
default:
- abort();
+ ceph_abort();
}
if (unlikely(m->get_magic() & MSG_MAGIC_TRACE_CTR)) {
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;
}
#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
{
int err = errno;
if (err == -EINTR)
continue;
- abort();
+ ceph_abort();
}
}
{
int ret = sem_post(&m_data->sem);
if (ret == -1) {
- abort();
+ ceph_abort();
}
}