diff --git a/src/async_io.cpp b/src/async_io.cpp index aa9b105..203c541 100644 --- a/src/async_io.cpp +++ b/src/async_io.cpp @@ -6,7 +6,7 @@ namespace { std::unique_ptr g_backend; -class DummyBackend : public wibo::AsyncIOBackend { +class NoOpBackend : public wibo::AsyncIOBackend { public: bool init() override { return true; } void shutdown() override {} @@ -43,12 +43,12 @@ AsyncIOBackend &asyncIO() { #if WIBO_ENABLE_LIBURING g_backend = detail::createIoUringBackend(); #else - g_backend = std::make_unique(); + g_backend = std::make_unique(); #endif } if (!g_backend->init()) { - fprintf(stderr, "asyncIO: failed to initialize backend\n"); - abort(); + DEBUG_LOG("AsyncIOBackend initialization failed; using no-op backend\n"); + g_backend = std::make_unique(); } return *g_backend; }