]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add comment explaining fix to #1679. refs #1679
authorDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Fri, 8 Feb 2013 19:27:57 +0000 (19:27 +0000)
committerDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Fri, 8 Feb 2013 19:27:57 +0000 (19:27 +0000)
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
src/allmydata/nodemaker.py

index d590bf5aea63a4fb0c3d817b07bd9486ccc01e30..d0c002461e0383538f056a15b088015cc585719b 100644 (file)
@@ -72,6 +72,10 @@ class NodeMaker:
             cap = uri.from_string(bigcap, deep_immutable=deep_immutable,
                                   name=name)
             node = self._create_from_single_cap(cap)
+
+            # node is None for an unknown URI, otherwise it is a type for which
+            # is_mutable() is known. We avoid cacheing mutable nodes due to
+            # ticket #1679.
             if node is None:
                 # don't cache UnknownNode
                 node = UnknownNode(writecap, readcap,