Skip to content

Conversation

@tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

This isn't actually necessary

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the parquet Changes to the parquet crate label Apr 28, 2023
let mut reader = self.reader.borrow_mut();
reader.seek(SeekFrom::Start(self.start))?; // always seek to start before reading
self.buf_cap = reader.read(&mut self.buf)?;
self.reader.seek(SeekFrom::Start(self.start))?; // always seek to start before reading
Copy link
Contributor Author

@tustvold tustvold Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is technically still racy because cloned file descriptor share a seek position, but the refcell wasn't helping prevent this

@tustvold tustvold marked this pull request as draft April 28, 2023 19:24
@tustvold
Copy link
Contributor Author

Closing in favour of #4156

@tustvold tustvold closed this Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant