mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Fix data-race with calling DBG_LOG from a separate thread
This commit is contained in:
parent
a67e138d4e
commit
78267c382c
1 changed files with 0 additions and 2 deletions
|
@ -112,8 +112,6 @@ void Manager::Expire(double t) {
|
||||||
// here ensures exclusive access.
|
// here ensures exclusive access.
|
||||||
std::unique_lock<std::mutex> lk(backends_mtx);
|
std::unique_lock<std::mutex> lk(backends_mtx);
|
||||||
|
|
||||||
DBG_LOG(DBG_STORAGE, "Expiration running, have %zu backends to check", backends.size());
|
|
||||||
|
|
||||||
for ( auto it = backends.begin(); it != backends.end() && ! run_state::terminating; ++it ) {
|
for ( auto it = backends.begin(); it != backends.end() && ! run_state::terminating; ++it ) {
|
||||||
if ( (*it)->IsOpen() )
|
if ( (*it)->IsOpen() )
|
||||||
(*it)->Expire(t);
|
(*it)->Expire(t);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue