Blind fix

This commit is contained in:
Siarhei Fedartsou 2024-06-20 17:16:52 +02:00
parent a1d34196cd
commit 812b7d7461

View File

@ -50,9 +50,10 @@ MMapMemoryAllocator::MMapMemoryAllocator(const storage::StorageConfig &config)
std::make_unique<storage::TarDataLayout>();
boost::iostreams::mapped_file_source mapped_memory_file;
auto data = util::mmapFile<char>(file.second, mapped_memory_file).data();
mapped_memory_files.push_back(std::move(mapped_memory_file));
mapped_memory_files.emplace_back(std::move(mapped_memory_file));
storage::populateLayoutFromFile(file.second, *layout);
allocated_regions.push_back({const_cast<char *>(data), std::move(layout)});
allocated_regions.emplace_back(storage::SharedDataIndex::AllocatedRegion{
const_cast<char *>(data), std::move(layout)});
}
}