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

Make file reading thread-safe, by having SubFile use read_at/seek_read rather than seek and read. #7

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

Tim-Evans-Seequent
Copy link
Contributor

This fixes the bug of assuming try_clone duplicates the file descriptor, and instead uses an Arc<File> with seeking reads directly.

@Tim-Evans-Seequent Tim-Evans-Seequent linked an issue Jun 19, 2024 that may be closed by this pull request
@Tim-Evans-Seequent Tim-Evans-Seequent merged commit 517af83 into main Jun 25, 2024
5 checks passed
@Tim-Evans-Seequent Tim-Evans-Seequent deleted the 4-file-reads-arent-thread-safe branch June 25, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File reads aren't thread safe
1 participant