mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix use-after-move in recent broker changes
(cherry picked from commit f8d2f30cec
)
This commit is contained in:
parent
d5bbf05a32
commit
c78335c47b
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ void Manager::InitPostScript() {
|
|||
config.set("caf.work-stealing.moderate-steal-interval", get_option("Broker::moderate_interval")->AsCount());
|
||||
config.set("caf.work-stealing.relaxed-steal-interval", get_option("Broker::relaxed_interval")->AsCount());
|
||||
|
||||
auto pbstate = std::make_shared<PeerBufferState>(options.peer_buffer_size,
|
||||
auto pbstate = std::make_shared<PeerBufferState>(get_option("Broker::peer_buffer_size")->AsCount(),
|
||||
get_option("Broker::buffer_stats_reset_interval")->AsDouble());
|
||||
auto observer = std::make_shared<Observer>(pbstate);
|
||||
broker::logger(observer); // *must* be called before creating the BrokerState
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue