Commit 6b3f6cae authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

pithos: Fix deadlock caused by erroneous check

To achieve atomicity we lock the container path.
However, the write operations update the statistics for the ancestor
nodes (container/account).
Therefore, the backend restricts the recursion up to the container

However, the specific condition check would be evaluated to False
if ``recursion_depth`` was 0.
parent e8f91730
......@@ -640,7 +640,7 @@ class Node(DBWorker):
while True:
if node == ROOTNODE:
if recursion_depth and recursion_depth <= i:
if recursion_depth is not None and recursion_depth <= i:
props = self.node_get_properties(node)
if props is None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment