* Previous commit lacked the post-jump dump of index data when this
mode is selected.
// set flag & return success
*hasAlignmentsInRegion = (offsets.size() != 0 );
// set flag & return success
*hasAlignmentsInRegion = (offsets.size() != 0 );
+
+ // if cache mode set to none, dump the data we just loaded
+ if (m_parent->m_cacheMode == BamIndex::NoIndexCaching )
+ ClearReferenceOffsets(region.LeftRefID);
+
+ // return succes
// set flag based on whether an index entry was found for this region
*hasAlignmentsInRegion = ( indexIter != indexEnd );
// set flag based on whether an index entry was found for this region
*hasAlignmentsInRegion = ( indexIter != indexEnd );
+
+ // if cache mode set to none, dump the data we just loaded
+ if (m_parent->m_cacheMode == BamIndex::NoIndexCaching )
+ ClearReferenceOffsets(region.LeftRefID);
+
+ // return success