File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/engine/datafacade Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class MMapMemoryAllocator : public ContiguousBlockAllocator
3333
3434 private:
3535 storage::SharedDataIndex index;
36- std::vector<boost::iostreams::mapped_file > mapped_memory_files;
36+ std::vector<boost::iostreams::mapped_file_source > mapped_memory_files;
3737 std::string rtree_filename;
3838};
3939
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ MMapMemoryAllocator::MMapMemoryAllocator(const storage::StorageConfig &config)
5252 {
5353 std::unique_ptr<storage::BaseDataLayout> layout =
5454 std::make_unique<storage::TarDataLayout>();
55- boost::iostreams::mapped_file mapped_memory_file;
56- util::mmapFile<char >(file.second , mapped_memory_file);
55+ boost::iostreams::mapped_file_source mapped_memory_file;
56+ auto data = util::mmapFile<char >(file.second , mapped_memory_file). data ( );
5757 mapped_memory_files.push_back (std::move (mapped_memory_file));
5858 storage::populateLayoutFromFile (file.second , *layout);
59- allocated_regions.push_back ({mapped_memory_file. data ( ), std::move (layout)});
59+ allocated_regions.push_back ({const_cast < char *>(data ), std::move (layout)});
6060 }
6161 }
6262
You can’t perform that action at this time.
0 commit comments