Address PR comments

This commit is contained in:
Pepijn Schoen
2017-04-13 11:45:35 +02:00
committed by Patrick Niklaus
parent b830a8f942
commit 4929d1297e
4 changed files with 6 additions and 18 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ auto mmapFile(const std::string &filename, boost::interprocess::mode_t mode)
const file_mapping mapping{filename.c_str(), mode};
// map region started at an offset of util::FingerPrint size
mapped_region region{mapping, mode, 8};
mapped_region region{mapping, mode, sizeof(util::FingerPrint)};
region.advise(mapped_region::advice_sequential);
return region;
}