Added assert
This commit is contained in:
parent
4e8e4ea3d3
commit
7de4948256
@ -196,6 +196,7 @@ void DataTree::resizeNumBytes(uint64_t newNumBytes) {
|
||||
}
|
||||
uint32_t newLastLeafSize = newNumBytes - (newNumLeaves-1)*_nodeStore->layout().maxBytesPerLeaf();
|
||||
LastLeaf(_rootNode.get())->resize(newLastLeafSize);
|
||||
assert(newNumBytes == numStoredBytes());
|
||||
}
|
||||
|
||||
optional_ownership_ptr<DataLeafNode> DataTree::LastLeaf(DataNode *root) {
|
||||
|
Loading…
Reference in New Issue
Block a user