Make MMapMemoryAllocator map files in read-only (O_RDONLY) mode. Mapping with O_RDWR will cause copy_up across Docker layers.

This commit is contained in:
Vyacheslav Napadovsky
2020-09-07 23:04:43 +03:00
parent 78160c0fe4
commit f545f2293e
2 changed files with 4 additions and 4 deletions
@@ -33,7 +33,7 @@ class MMapMemoryAllocator : public ContiguousBlockAllocator
private:
storage::SharedDataIndex index;
std::vector<boost::iostreams::mapped_file> mapped_memory_files;
std::vector<boost::iostreams::mapped_file_source> mapped_memory_files;
std::string rtree_filename;
};