mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Use fatal::abort() rather than assert in places
This commit is contained in:
parent
61365d226d
commit
7763c7384a
5 changed files with 9 additions and 10 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "fuse_readdir_factory.hpp"
|
||||
|
||||
#include "dirinfo.hpp"
|
||||
#include "fatal.hpp"
|
||||
#include "fuse_dirents.hpp"
|
||||
|
||||
#include "config.hpp"
|
||||
|
|
@ -108,7 +109,8 @@ FUSE::ReadDir::operator()(const fuse_req_ctx_t *ctx_,
|
|||
std::shared_ptr<FUSE::ReadDirBase> readdir;
|
||||
|
||||
readdir = std::atomic_load(&_impl);
|
||||
assert(readdir);
|
||||
if(!readdir)
|
||||
fatal::abort("readdir impl is null");
|
||||
|
||||
rv = (*readdir)(ctx_,ffi_,buf_);
|
||||
if(rv == -ENOENT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue