Revision 7806f19d kamaki/clients/pithos/__init__.py

b/kamaki/clients/pithos/__init__.py
626 626
        return (blocksize, blockhash, total_size, hashmap['hashes'], map_dict)
627 627

  
628 628
    def _dump_blocks_sync(
629
            self, obj, remote_hashes, blocksize, total_size, dst, range,
629
            self, obj, remote_hashes, blocksize, total_size, dst, crange,
630 630
            **args):
631 631
        for blockid, blockhash in enumerate(remote_hashes):
632 632
            if blockhash:
633 633
                start = blocksize * blockid
634 634
                is_last = start + blocksize > total_size
635 635
                end = (total_size - 1) if is_last else (start + blocksize - 1)
636
                (start, end) = _range_up(start, end, range)
636
                (start, end) = _range_up(start, end, crange)
637 637
                args['data_range'] = 'bytes=%s-%s' % (start, end)
638 638
                r = self.object_get(obj, success=(200, 206), **args)
639 639
                self._cb_next()

Also available in: Unified diff