mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix crash related to Broker stores
This commit is contained in:
parent
68bc6111ed
commit
b23869a2cd
1 changed files with 3 additions and 0 deletions
|
@ -1900,6 +1900,9 @@ detail::StoreHandleVal* Manager::MakeClone(const string& name, double resync_int
|
||||||
auto handle = new detail::StoreHandleVal{*result};
|
auto handle = new detail::StoreHandleVal{*result};
|
||||||
Ref(handle);
|
Ref(handle);
|
||||||
|
|
||||||
|
if ( ! handle->proxy.valid() )
|
||||||
|
reporter->FatalError("Failed to create clone for data store %s", name.c_str());
|
||||||
|
|
||||||
data_stores.emplace(name, handle);
|
data_stores.emplace(name, handle);
|
||||||
if ( ! iosource_mgr->RegisterFd(handle->proxy.mailbox().descriptor(), this) )
|
if ( ! iosource_mgr->RegisterFd(handle->proxy.mailbox().descriptor(), this) )
|
||||||
reporter->FatalError("Failed to register broker clone mailbox descriptor with iosource_mgr");
|
reporter->FatalError("Failed to register broker clone mailbox descriptor with iosource_mgr");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue