mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Remove Backend::SupportsAsync
This commit is contained in:
parent
42ad5bbf7d
commit
e8074c40d4
2 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue