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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user