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 committed by Moritz Kobitzsch
parent 4638b32be4
commit 4e9f5b61ac

View File

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