Rev 10: Use >= to make it clearer what is going on. in http://bzr.arbash-meinel.com/plugins/index2
John Arbash Meinel
john at arbash-meinel.com
Wed Jul 2 06:38:19 BST 2008
At http://bzr.arbash-meinel.com/plugins/index2
------------------------------------------------------------
revno: 10
revision-id: john at arbash-meinel.com-20080702053739-zxv81xne6i1pl1gx
parent: john at arbash-meinel.com-20080702052941-xfx5k9vhlph5seut
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: index2
timestamp: Wed 2008-07-02 00:37:39 -0500
message:
Use >= to make it clearer what is going on.
-------------- next part --------------
=== modified file 'chunk_writer.py'
--- a/chunk_writer.py 2008-07-02 05:29:41 +0000
+++ b/chunk_writer.py 2008-07-02 05:37:39 +0000
@@ -33,7 +33,7 @@
- if the total seen bytes so far exceeds the chunk size, flush.
"""
- _max_repack = 1
+ _max_repack = 2
def __init__(self, chunk_size):
"""Create a ChunkWriter to write chunk_size chunks."""
@@ -97,7 +97,7 @@
if out:
self.bytes_list.append(out)
else:
- if self.num_repack > self._max_repack:
+ if self.num_repack >= self._max_repack:
# We have packed too many times already.
return True
# This may or may not fit, try to add it with Z_SYNC_FLUSH
More information about the bazaar-commits
mailing list