mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Deprecate session manager's Done()
This commit is contained in:
parent
013dc2010f
commit
124f2a7d28
4 changed files with 8 additions and 6 deletions
|
@ -385,7 +385,7 @@ void finish_run(int drain_events) {
|
||||||
event_mgr.Drain();
|
event_mgr.Drain();
|
||||||
|
|
||||||
if ( session_mgr )
|
if ( session_mgr )
|
||||||
session_mgr->Done();
|
session_mgr->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
|
@ -88,7 +88,7 @@ void fuzzer_cleanup_one_input() {
|
||||||
zeek::event_mgr.Drain();
|
zeek::event_mgr.Drain();
|
||||||
zeek::session_mgr->Drain();
|
zeek::session_mgr->Drain();
|
||||||
zeek::event_mgr.Drain();
|
zeek::event_mgr.Drain();
|
||||||
zeek::session_mgr->Done();
|
zeek::session_mgr->Clear();
|
||||||
run_state::terminating = false;
|
run_state::terminating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,9 +82,10 @@ Manager::Manager() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Manager::~Manager() { delete stats; }
|
Manager::~Manager() {
|
||||||
|
Clear();
|
||||||
void Manager::Done() { Clear(); }
|
delete stats;
|
||||||
|
}
|
||||||
|
|
||||||
Connection* Manager::FindConnection(Val* v) {
|
Connection* Manager::FindConnection(Val* v) {
|
||||||
zeek::detail::ConnKey conn_key(v);
|
zeek::detail::ConnKey conn_key(v);
|
||||||
|
|
|
@ -59,7 +59,8 @@ public:
|
||||||
Manager();
|
Manager();
|
||||||
~Manager();
|
~Manager();
|
||||||
|
|
||||||
void Done(); // call to drain events before destructing
|
[[deprecated("Remove in v8.1 - no functionality. Use Drain() and Clear().")]]
|
||||||
|
void Done() {};
|
||||||
|
|
||||||
// Looks up the connection referred to by the given Val,
|
// Looks up the connection referred to by the given Val,
|
||||||
// which should be a conn_id record. Returns nil if there's
|
// which should be a conn_id record. Returns nil if there's
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue