Rev 3813: When starting a new list, we need to start it with the current entry in http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/remote_readv_sections
John Arbash Meinel
john at arbash-meinel.com
Wed Oct 29 19:35:58 GMT 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/remote_readv_sections
------------------------------------------------------------
revno: 3813
revision-id: john at arbash-meinel.com-20081029193544-6vhuhlahdor8ebr3
parent: john at arbash-meinel.com-20081029192753-g8yqvt6pgqefi0ir
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: remote_readv_sections
timestamp: Wed 2008-10-29 14:35:44 -0500
message:
When starting a new list, we need to start it with the current entry
-------------- next part --------------
=== modified file 'bzrlib/transport/remote.py'
--- a/bzrlib/transport/remote.py 2008-10-29 19:27:53 +0000
+++ b/bzrlib/transport/remote.py 2008-10-29 19:35:44 +0000
@@ -326,8 +326,8 @@
for c in coalesced:
if c.length + cur_len > self._max_readv_bytes:
requests.append(cur_request)
- cur_request = []
- cur_len = 0
+ cur_request = [c]
+ cur_len = c.length
continue
cur_request.append(c)
cur_len += c.length
More information about the bazaar-commits
mailing list