1
0
Fork 0

added assert

This commit is contained in:
jsteemann 2017-04-12 15:38:01 +02:00
parent d2fe5adbc9
commit ac65ee6fc2
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ MMFilesPathBasedIndex::MMFilesPathBasedIndex(TRI_idx_iid_t iid,
} }
} }
TRI_ASSERT(baseSize > 0);
_allocator.reset(new FixedSizeAllocator(baseSize + sizeof(MMFilesIndexElementValue) * numPaths())); _allocator.reset(new FixedSizeAllocator(baseSize + sizeof(MMFilesIndexElementValue) * numPaths()));
} }