Permalink
Browse files

DS-1970 to many open files exception

 when update lucene index
  • Loading branch information...
1 parent fb61ed0 commit 9dc9235a9b952e7dea7f6128d1d29f93f581e6ad @rradillen rradillen committed Apr 15, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 dspace-api/src/main/java/org/dspace/search/DSQuery.java
View
3 dspace-api/src/main/java/org/dspace/search/DSQuery.java
@@ -475,6 +475,9 @@ protected static synchronized IndexSearcher getSearcher(Context c)
lastModified = reader.getVersion();
searcher = new IndexSearcher(reader);
+ } else {
+ reader.close();
+ searchDir.close();
}
return searcher;

0 comments on commit 9dc9235

Please sign in to comment.