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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1437798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-01-23 23:20:21 +00:00
parent 3801883396
commit ee97b7a489
1 changed files with 1 additions and 0 deletions

View File

@ -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;