mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 11:56:31 -05:00
Use fatal::abort() rather than assert in places
This commit is contained in:
parent
0b3600ddcf
commit
0b4ecc0226
5 changed files with 9 additions and 10 deletions
|
|
@ -1,10 +1,8 @@
|
|||
#include "maintenance_thread.hpp"
|
||||
|
||||
#include "fatal.hpp"
|
||||
#include "mutex.hpp"
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
#include <pthread.h>
|
||||
|
|
@ -46,7 +44,8 @@ MaintenanceThread::setup()
|
|||
int rv;
|
||||
|
||||
rv = pthread_create(&g_thread,NULL,_thread_loop,NULL);
|
||||
assert((rv == 0) && "pthread_create failed");
|
||||
if(rv != 0)
|
||||
fatal::abort("pthread_create failed: rv={}",rv);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue