mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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();
|
||||
searcher = new IndexSearcher(reader);
|
||||
|
||||
} else {
|
||||
reader.close();
|
||||
searchDir.close();
|
||||
}
|
||||
|
||||
return searcher;
|
||||
|
Reference in New Issue
Block a user