Always overwrite m_is_core_node on data swap

This fixes a seg fault when swapping between core/no core datasets
This commit is contained in:
Patrick Niklaus 2016-08-25 12:41:54 +02:00
parent c5e85f3d6d
commit da9d63a384
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -276,11 +276,6 @@ class SharedDataFacade final : public BaseDataFacade
void LoadCoreInformation() void LoadCoreInformation()
{ {
if (data_layout->num_entries[storage::SharedDataLayout::CORE_MARKER] <= 0)
{
return;
}
auto core_marker_ptr = data_layout->GetBlockPtr<unsigned>( auto core_marker_ptr = data_layout->GetBlockPtr<unsigned>(
shared_memory, storage::SharedDataLayout::CORE_MARKER); shared_memory, storage::SharedDataLayout::CORE_MARKER);
util::ShM<bool, true>::vector is_core_node( util::ShM<bool, true>::vector is_core_node(