Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary RefCell from FileSource #4157

Closed
wants to merge 1 commit into from

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.

None yet

1 participant