Comments & TODOs

This commit is contained in:
Sebastian Messmer 2014-12-11 00:21:34 +01:00
parent c3d543619e
commit d1a7712aee

View File

@ -44,6 +44,9 @@ uint64_t DataLeafNode::numBytesInThisNode() {
void DataLeafNode::resize(uint64_t newsize_bytes) { void DataLeafNode::resize(uint64_t newsize_bytes) {
assert(newsize_bytes <= MAX_STORED_BYTES); assert(newsize_bytes <= MAX_STORED_BYTES);
// If we're shrinking, we want to delete the old data
// (overwrite it with zeroes).
// TODO Mention this in thesis
if (newsize_bytes < *_node.Size()) { if (newsize_bytes < *_node.Size()) {
fillDataWithZeroesFromTo(newsize_bytes, *_node.Size()); fillDataWithZeroesFromTo(newsize_bytes, *_node.Size());
} }