Rev 3025: Fix 165061 by using the correct _max_readv_combine attribute. in file:///v/home/vila/src/bzr/bugs/165061/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Nov 27 08:26:02 GMT 2007


At file:///v/home/vila/src/bzr/bugs/165061/

------------------------------------------------------------
revno: 3025
revision-id:v.ladeuil+lp at free.fr-20071127082600-y4hnhy03v0jdywgc
parent: pqm at pqm.ubuntu.com-20071126080312-mc2sagjsq7u3lemo
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 165061
timestamp: Tue 2007-11-27 09:26:00 +0100
message:
  Fix 165061 by using the correct _max_readv_combine attribute.
  
  * bzrlib/transport/http/__init__.py:
  (HttpTransportBase): Typo corrected. That should be some kind of
  record in the performance_gained / size(code_modified) ratio
  league.
modified:
  bzrlib/transport/__init__.py   transport.py-20050711165921-4978aa7ce1285ad5
  bzrlib/transport/http/__init__.py http_transport.py-20050711212304-506c5fd1059ace96
-------------- next part --------------
=== modified file 'bzrlib/transport/__init__.py'
--- a/bzrlib/transport/__init__.py	2007-11-19 13:44:25 +0000
+++ b/bzrlib/transport/__init__.py	2007-11-27 08:26:00 +0000
@@ -645,7 +645,7 @@
 
         :param relpath: The path to read data from.
         :param offsets: A list of (offset, size) tuples.
-        :param adjust_for_latency: Adjust the requested offsets to accomdate
+        :param adjust_for_latency: Adjust the requested offsets to accomodate
             transport latency. This may re-order the offsets, expand them to
             grab adjacent data when there is likely a high cost to requesting
             data relative to delivering it.
@@ -661,9 +661,12 @@
         if adjust_for_latency:
             # Design note: We may wish to have different algorithms for the
             # expansion of the offsets per-transport. E.g. for local disk to
-            # use page-aligned expansion. If that is the case consider the following structure:
-            #  - a test that transport.readv uses self._offset_expander or some similar attribute, to do the expansion
-            #  - a test for each transport that it has some known-good offset expander
+            # use page-aligned expansion. If that is the case consider the
+            # following structure:
+            #  - a test that transport.readv uses self._offset_expander or some
+            #    similar attribute, to do the expansion
+            #  - a test for each transport that it has some known-good offset
+            #    expander
             #  - unit tests for each offset expander
             #  - a set of tests for the offset expander interface, giving
             #    baseline behaviour (which the current transport

=== modified file 'bzrlib/transport/http/__init__.py'
--- a/bzrlib/transport/http/__init__.py	2007-08-26 22:10:51 +0000
+++ b/bzrlib/transport/http/__init__.py	2007-11-27 08:26:00 +0000
@@ -250,7 +250,7 @@
     _bytes_to_read_before_seek = 128
     # No limit on the offset number that get combined into one, we are trying
     # to avoid downloading the whole file.
-    _max_readv_combined = 0
+    _max_readv_combine = 0
 
     def _readv(self, relpath, offsets):
         """Get parts of the file at the given relative path.



More information about the bazaar-commits mailing list