mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Minor optimization to bro_broker::Manager::FlushPendingQueries
This commit is contained in:
parent
8a00a2dbf8
commit
197ea03f8f
1 changed files with 10 additions and 1 deletions
|
@ -241,8 +241,17 @@ void Manager::FlushPendingQueries()
|
|||
{
|
||||
// possibly an infinite loop if a query can recursively
|
||||
// generate more queries...
|
||||
Process();
|
||||
for ( auto& s : data_stores )
|
||||
{
|
||||
while ( ! s.second->proxy.mailbox().empty() )
|
||||
{
|
||||
auto response = s.second->proxy.receive();
|
||||
ProcessStoreResponse(s.second, move(response));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SetIdle(false);
|
||||
}
|
||||
|
||||
uint16_t Manager::Listen(const string& addr, uint16_t port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue