Skip to content
Browse files

Merge pull request #519 from rradillen/patch-5

DS-1970 to many open files exception
  • Loading branch information...
2 parents fb61ed0 + 9dc9235 commit 454061ff7125f635b82a062d39f319c6c5d9da8e @hardyoyo hardyoyo 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 454061f

Please sign in to comment.
Something went wrong with that request. Please try again.