Fix final write detection
This commit is contained in:
parent
a75d59643c
commit
0cda5d43a6
@ -56,8 +56,10 @@ func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error)
|
||||
}
|
||||
|
||||
lp.OnWriteComplete = func(completed_write_id loop.IdType) error {
|
||||
if final_write_id > 0 {
|
||||
if completed_write_id == final_write_id {
|
||||
transition_to_read()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
chunk, err := io_data.next_chunk(true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user