Skip to content

Commit

Permalink
OAK-10427: Clear cache on NodeDocumentCache close
Browse files Browse the repository at this point in the history
  • Loading branch information
mreutegg committed Sep 4, 2023
1 parent dcb47fc commit 42eee10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ public Iterable<CacheStats> getCacheStats() {

@Override
public void close() throws IOException {
prevDocumentsCache.invalidateAll();
if (prevDocumentsCache instanceof Closeable) {
((Closeable) prevDocumentsCache).close();
}
nodeDocumentsCache.invalidateAll();
if (nodeDocumentsCache instanceof Closeable) {
((Closeable) nodeDocumentsCache).close();
}
Expand Down

0 comments on commit 42eee10

Please sign in to comment.