-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from theferrit32/112-fasta-thread-safety
This PR addresses two issues: 1. Explicitly closes files. Without this, file descriptors will likely be closed only upon garbage collection, but that might not be soon enough to avoid fd exhaustion. @theferrit32 had good data to support this hypothesis. 2. Wrap files in a lock to prevent two threads from competing for file seeks. This caused issues like the following: ``` [E::bgzf_uncompress] Inflate operation failed: invalid distance too far back [E::fai_retrieve] Failed to retrieve block. (Seeking in a compressed, .gzi unindexed, file?) ```
- Loading branch information
Showing
5 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters