Signed-off-by: Li Wang <laurence.liwang@gmail.com>
if (ops_in_flight == max_ops_in_flight) {
int err = op_avail.Wait(ops_in_flight_lock);
if (err < 0) {
- assert(false);
+ ceph_abort();
return err;
}
assert(ops_in_flight < max_ops_in_flight);
std::string CEPH_LIB(env ? env : ".libs");
DIR *dir = ::opendir(CEPH_LIB.c_str());
if (dir == NULL) {
- assert(false);;
+ ceph_abort();;
}
struct dirent *pde = nullptr;
namespace ceph {
void __ceph_assert_fail(const char *assertion, const char *file, int line,
const char *func) {
- assert(false);
+ ceph_abort();
}
}
struct WatchCtx : public librados::WatchCtx2 {
void handle_notify(uint64_t, uint64_t, uint64_t,
ceph::bufferlist&) override {
- assert(false);
+ ceph_abort();
}
void handle_error(uint64_t, int) override {
- assert(false);
+ ceph_abort();
}
};