sfackler commented on a change in pull request #9536:
URL: https://github.com/apache/arrow/pull/9536#discussion_r579687968
##########
File path: rust/arrow/src/ipc/writer.rs
##########
@@ -434,6 +434,12 @@ impl<W: Write> FileWriter<W> {
/// Write footer and closing tag, then mark the writer as done
pub fn finish(&mut self) -> Result<()> {
+ if self.finished {
Review comment:
This is just a drive-by fix to defend against double-writes of the
footer I noticed while making the change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]