~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: John Arbash Meinel
  • Date: 2008-10-29 19:35:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3819.
  • Revision ID: john@arbash-meinel.com-20081029193544-6vhuhlahdor8ebr3
When starting a new list, we need to start it with the current entry

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
        for c in coalesced:
327
327
            if c.length + cur_len > self._max_readv_bytes:
328
328
                requests.append(cur_request)
329
 
                cur_request = []
330
 
                cur_len = 0
 
329
                cur_request = [c]
 
330
                cur_len = c.length
331
331
                continue
332
332
            cur_request.append(c)
333
333
            cur_len += c.length