From 812b7d7461ee1a2025d843556d00805cea9d8647 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 20 Jun 2024 17:16:52 +0200 Subject: [PATCH] Blind fix --- src/engine/datafacade/mmap_memory_allocator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/datafacade/mmap_memory_allocator.cpp b/src/engine/datafacade/mmap_memory_allocator.cpp index fb01ab175..05f5f39e4 100644 --- a/src/engine/datafacade/mmap_memory_allocator.cpp +++ b/src/engine/datafacade/mmap_memory_allocator.cpp @@ -50,9 +50,10 @@ MMapMemoryAllocator::MMapMemoryAllocator(const storage::StorageConfig &config) std::make_unique(); boost::iostreams::mapped_file_source mapped_memory_file; auto data = util::mmapFile(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(data), std::move(layout)}); + allocated_regions.emplace_back(storage::SharedDataIndex::AllocatedRegion{ + const_cast(data), std::move(layout)}); } }