Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Remove a cloned MMapIndexInput from the clones map when its closed.

Uwe Schindleree97b7a489ec
diff --git a/lucene/core/src/java/org/apache/lucene/store/ByteBufferIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/ByteBufferIndexInput.java
index c3c711efcbc..161b5fee9d6 100644
--- a/lucene/core/src/java/org/apache/lucene/store/ByteBufferIndexInput.java
+++ b/lucene/core/src/java/org/apache/lucene/store/ByteBufferIndexInput.java
@@ -272,6 +272,7 @@ abstract class ByteBufferIndexInput extends IndexInput {
// make local copy, then un-set early
final ByteBuffer[] bufs = buffers;
unsetBuffers();
+ clones.remove(this);
if (isClone) return;