mirror of https://gitee.com/bigwinds/arangodb
added assert
This commit is contained in:
parent
d2fe5adbc9
commit
ac65ee6fc2
|
@ -56,6 +56,8 @@ MMFilesPathBasedIndex::MMFilesPathBasedIndex(TRI_idx_iid_t iid,
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
TRI_ASSERT(baseSize > 0);
|
||||
|
||||
_allocator.reset(new FixedSizeAllocator(baseSize + sizeof(MMFilesIndexElementValue) * numPaths()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue