From d72e7c2acdb1c404e12107f67ebe11a74b10e795 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Wed, 30 Sep 2015 10:06:53 +0200 Subject: [PATCH] TODOs --- implementations/onblocks/datatreestore/DataTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/onblocks/datatreestore/DataTree.cpp b/implementations/onblocks/datatreestore/DataTree.cpp index c3fb15bb..9d913371 100644 --- a/implementations/onblocks/datatreestore/DataTree.cpp +++ b/implementations/onblocks/datatreestore/DataTree.cpp @@ -155,7 +155,7 @@ uint32_t DataTree::_numLeaves(const DataNode &node) const { } void DataTree::traverseLeaves(uint32_t beginIndex, uint32_t endIndex, function func) { - unique_lock lock(_mutex); //TODO Only lock when resizing + unique_lock lock(_mutex); //TODO Only lock when resizing. Otherwise parallel read/write to a blob is not possible! ASSERT(beginIndex <= endIndex, "Invalid parameters"); uint8_t neededTreeDepth = utils::ceilLog(_nodeStore->layout().maxChildrenPerInnerNode(), endIndex);