Fix crash related to Broker stores

This commit is contained in:
Dominik Charousset 2025-02-08 10:53:32 +01:00 committed by Tim Wojtulewicz
parent 68bc6111ed
commit b23869a2cd

View file

@ -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");