Commit d542468
committed
Destroy the index *before* closing SAM/BAM/CRAM file
For CRAM files, indexing is done within HTSlib's cram_fd and the
index's hts_idx_t is merely a shim pointing to the associated samFile.
(See samtools/htslib@81b173e et al.)
Hence for CRAM files in particular, it is vital to destroy an index
*before* closing the associated samFile. Fixes #1169.1 parent 3888168 commit d542468
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | 1668 | | |
1672 | 1669 | | |
1673 | 1670 | | |
1674 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | 1687 | | |
1692 | 1688 | | |
1693 | 1689 | | |
1694 | 1690 | | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
| |||
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
2049 | | - | |
2050 | 2049 | | |
| 2050 | + | |
2051 | 2051 | | |
2052 | 2052 | | |
2053 | 2053 | | |
| |||
0 commit comments