mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
DS-1970 to many open files exception
when update lucene index
This commit is contained in:
@@ -475,6 +475,9 @@ public class DSQuery
|
|||||||
lastModified = reader.getVersion();
|
lastModified = reader.getVersion();
|
||||||
searcher = new IndexSearcher(reader);
|
searcher = new IndexSearcher(reader);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
reader.close();
|
||||||
|
searchDir.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
return searcher;
|
return searcher;
|
||||||
|
Reference in New Issue
Block a user