~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/trace.py

  • Committer: Martin Pool
  • Date: 2009-07-01 06:35:22 UTC
  • mto: This revision was merged to the branch mainline in revision 4502.
  • Revision ID: mbp@sourcefrog.net-20090701063522-wbt8hp0yzyblta5p
TransportLogDecorator.readv must return a generator

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    Not all operations are logged at this point, if you need an unlogged
34
34
    operation please add a test to the tests of this transport, for the logging
35
35
    of the operation you want logged.
 
36
 
 
37
    See also TransportLogDecorator, that records a machine-readable log in 
 
38
    memory for eg testing.
36
39
    """
37
40
 
38
41
    def __init__(self, url, _decorated=None, _from_transport=None):
126
129
 
127
130
    def readv(self, relpath, offsets, adjust_for_latency=False,
128
131
        upper_limit=None):
 
132
        # we override at the readv() level rather than _readv() so that any
 
133
        # latency adjustments will be done by the underlying transport
129
134
        """See Transport.readv."""
130
135
        self._trace(('readv', relpath, offsets, adjust_for_latency,
131
136
            upper_limit))
 
137
        import pdb;pdb.set_trace()
132
138
        return self._decorated.readv(relpath, offsets, adjust_for_latency,
133
139
            upper_limit)
134
140