From ac65ee6fc267ed1874b028daf1432834bcdc248e Mon Sep 17 00:00:00 2001 From: jsteemann Date: Wed, 12 Apr 2017 15:38:01 +0200 Subject: [PATCH] added assert --- arangod/MMFiles/MMFilesPathBasedIndex.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arangod/MMFiles/MMFilesPathBasedIndex.cpp b/arangod/MMFiles/MMFilesPathBasedIndex.cpp index 853e78aba7..3ee5359b8d 100644 --- a/arangod/MMFiles/MMFilesPathBasedIndex.cpp +++ b/arangod/MMFiles/MMFilesPathBasedIndex.cpp @@ -56,6 +56,8 @@ MMFilesPathBasedIndex::MMFilesPathBasedIndex(TRI_idx_iid_t iid, break; } } + + TRI_ASSERT(baseSize > 0); _allocator.reset(new FixedSizeAllocator(baseSize + sizeof(MMFilesIndexElementValue) * numPaths())); }