From e8074c40d4562ebfa84d3a9dc984a9861c60e139 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 30 Jan 2025 19:11:28 -0700 Subject: [PATCH] Remove Backend::SupportsAsync --- src/storage/Backend.h | 6 ------ src/storage/storage.bif | 5 ----- 2 files changed, 11 deletions(-) diff --git a/src/storage/Backend.h b/src/storage/Backend.h index ec5cd39f14..23331800e0 100644 --- a/src/storage/Backend.h +++ b/src/storage/Backend.h @@ -104,12 +104,6 @@ public: */ virtual bool IsOpen() = 0; - /** - * Returns whether the backend's connection supports asynchronous commands. - * Defaults to true, but can be overridden by backends. - */ - virtual bool SupportsAsync() { return true; } - protected: // Allow the manager to call Open/Close. friend class storage::Manager; diff --git a/src/storage/storage.bif b/src/storage/storage.bif index a5cf473ae6..ae037378f5 100644 --- a/src/storage/storage.bif +++ b/src/storage/storage.bif @@ -8,11 +8,6 @@ using namespace zeek; using namespace zeek::storage; static zeek::detail::trigger::TriggerPtr init_trigger(zeek::detail::Frame* frame, const BackendPtr& b) { - if ( ! b->SupportsAsync() ) { - emit_builtin_error("Async mode requested but backend does not support async operations"); - return nullptr; - } - auto trigger = frame->GetTrigger(); if ( ! trigger ) {