/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/btree_index.py

  • Committer: Andrew Bennetts
  • Date: 2009-11-19 06:28:13 UTC
  • mfrom: (4811 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4812.
  • Revision ID: andrew.bennetts@canonical.com-20091119062813-t6sd6gwbot8nfyze
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
            # Special case the first node as it may be prefixed
412
412
            node = row.spool.read(_PAGE_SIZE)
413
413
            result.write(node[reserved:])
414
 
            result.write("\x00" * (reserved - position))
 
414
            if len(node) == _PAGE_SIZE:
 
415
                result.write("\x00" * (reserved - position))
415
416
            position = 0 # Only the root row actually has an offset
416
417
            copied_len = osutils.pumpfile(row.spool, result)
417
418
            if copied_len != (row.nodes - 1) * _PAGE_SIZE: