mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
dirnode.build_manifest(): tolerate cycles in the directory graph
This commit is contained in:
parent
e3a57fca98
commit
32fcf0b405
@ -354,7 +354,7 @@ class ImmutableDirectoryNode:
|
|||||||
dl = []
|
dl = []
|
||||||
for name, child in res.iteritems():
|
for name, child in res.iteritems():
|
||||||
manifest.add(child.get_refresh_capability())
|
manifest.add(child.get_refresh_capability())
|
||||||
if IDirectoryNode.providedBy(child):
|
if IDirectoryNode.providedBy(child) and child not in manifest:
|
||||||
dl.append(self._build_manifest_from_node(child, manifest))
|
dl.append(self._build_manifest_from_node(child, manifest))
|
||||||
if dl:
|
if dl:
|
||||||
return defer.DeferredList(dl)
|
return defer.DeferredList(dl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user