Skip to content

Commit

Permalink
Fixed issue with lucene in memory due to autoclose. #7844
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Oct 25, 2017
1 parent a2dc8c3 commit 30b80c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void run() {
}

private boolean shouldClose() {
return System.currentTimeMillis() - lastAccess.get() > closeAfterInterval;
return !(directory instanceof RAMDirectory) && System.currentTimeMillis() - lastAccess.get() > closeAfterInterval;
}

private void checkCollectionIndex(OIndexDefinition indexDefinition) {
Expand Down

0 comments on commit 30b80c5

Please sign in to comment.