Skip to content

Commit

Permalink
Fix a tricky bug in read_bytes.py, may cause data loss in certain s…
Browse files Browse the repository at this point in the history
…cenario. (#1965)
  • Loading branch information
siyuan0322 authored Jul 30, 2024
1 parent 86808bb commit 388fcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vineyard/drivers/io/adaptors/read_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def read_byte_blocks(
size = len(buffer)
if size <= 0:
break
begin += size
begin += chunk_size
if size > 0:
chunk = writer.next(size)
vineyard.memory_copy(chunk, buffer)
Expand Down

0 comments on commit 388fcaf

Please sign in to comment.