]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
immutable/filenode.py: put off DownloadStatus creation until first read() call
authorBrian Warner <warner@lothar.com>
Mon, 9 Aug 2010 22:49:09 +0000 (15:49 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 9 Aug 2010 22:50:55 +0000 (15:50 -0700)
commit5267fc17fea9efd58302850a00114b7c74564277
tree8b4e09e6d733cb4412e0b5843eb7c978dc99260f
parented821d1504330c65b179b43b8f2c6ee525885c72
immutable/filenode.py: put off DownloadStatus creation until first read() call

This avoids spamming the "recent uploads and downloads" /status page from
FileNode instances that were created for a directory read but which nobody is
ever going to read from. I also cleaned up the way DownloadStatus instances
are made to only ever do it in the CiphertextFileNode, not in the
higher-level plaintext FileNode. Also fixed DownloadStatus handling of read
size, thanks to David-Sarah for the catch.
src/allmydata/immutable/filenode.py