Skip to content

Commit

Permalink
Fix gcs
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Sep 28, 2023
1 parent 7856b62 commit 40fc61c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/raw/oio/write/range_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@ impl<W: RangeWrite> oio::Write for RangeWriter<W> {
(w, res)
}));
}
None => return Poll::Ready(Ok(())),
None => {
// Call write_once if there is no data in buffer and no location.
self.state = State::Complete(Box::pin(async move {
let res = w.write_once(0, AsyncBody::Empty).await;
(w, res)
}));
}
},
}
}
Expand Down

0 comments on commit 40fc61c

Please sign in to comment.