diff options
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/data_file.cpp')
-rw-r--r-- | src/mongo/db/storage/mmap_v1/data_file.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/storage/mmap_v1/data_file.cpp b/src/mongo/db/storage/mmap_v1/data_file.cpp index 8b445349408..0c88f5184cd 100644 --- a/src/mongo/db/storage/mmap_v1/data_file.cpp +++ b/src/mongo/db/storage/mmap_v1/data_file.cpp @@ -62,12 +62,10 @@ void data_file_check(void* _mb) { BOOST_STATIC_ASSERT(DataFileHeader::HeaderSize == 8192); -BOOST_STATIC_ASSERT(sizeof(reinterpret_cast<DataFileHeader*>(NULL)->data) == 4); -BOOST_STATIC_ASSERT(sizeof(DataFileHeader) - - sizeof(reinterpret_cast<DataFileHeader*>(NULL)->data) == +BOOST_STATIC_ASSERT(sizeof(static_cast<DataFileHeader*>(NULL)->data) == 4); +BOOST_STATIC_ASSERT(sizeof(DataFileHeader) - sizeof(static_cast<DataFileHeader*>(NULL)->data) == DataFileHeader::HeaderSize); - int DataFile::maxSize() { if (sizeof(int*) == 4) { return 512 * 1024 * 1024; |