Skip to content

Commit

Permalink
drop order leads to panic?
Browse files Browse the repository at this point in the history
  • Loading branch information
jtong11 committed Oct 9, 2020
1 parent a76f3de commit 82c3668
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/core/index/reader/segment_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,6 @@ pub struct SegmentReader<D: Directory, C: Codec> {

unsafe impl<D: Directory + Send + Sync + 'static, C: Codec> Sync for SegmentReader<D, C> {}

impl<D: Directory, C: Codec> Drop for SegmentReader<D, C> {
fn drop(&mut self) {
self.doc_values_producer_preload.write().unwrap().clear();
self.doc_values_local_preload.write().unwrap().clear();
self.doc_values_producer.clear();
self.doc_values_local.clear();
}
}

/// IndexReader implementation over a single segment.
/// Instances pointing to the same segment (but with different deletes, etc)
/// may share the same core data.
Expand Down

0 comments on commit 82c3668

Please sign in to comment.