Merge "Iterate through the sorted file map when finding transfers" am: a7229a08b7
am: 0541a6a556
Change-Id: Idd384a1a089dc05a329b0e5e640d9cd4481e1ef7
This commit is contained in:
commit
5ed32ce7a0
|
@ -1467,7 +1467,7 @@ class BlockImageDiff(object):
|
||||||
max_blocks_per_transfer = int(cache_size * split_threshold /
|
max_blocks_per_transfer = int(cache_size * split_threshold /
|
||||||
self.tgt.blocksize)
|
self.tgt.blocksize)
|
||||||
empty = RangeSet()
|
empty = RangeSet()
|
||||||
for tgt_fn, tgt_ranges in self.tgt.file_map.items():
|
for tgt_fn, tgt_ranges in sorted(self.tgt.file_map.items()):
|
||||||
if tgt_fn == "__ZERO":
|
if tgt_fn == "__ZERO":
|
||||||
# the special "__ZERO" domain is all the blocks not contained
|
# the special "__ZERO" domain is all the blocks not contained
|
||||||
# in any file and that are filled with zeros. We have a
|
# in any file and that are filled with zeros. We have a
|
||||||
|
|
Loading…
Reference in New Issue