Skip to content

Commit

Permalink
Update server/src/main/java/org/opensearch/indices/IndicesRequestCach…
Browse files Browse the repository at this point in the history
…e.java

Co-authored-by: Kiran Prakash <[email protected]>
Signed-off-by: Sagar <[email protected]>
  • Loading branch information
sgup432 and kiranprakash154 authored Nov 6, 2023
1 parent 7f2c833 commit 4d2b5ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ synchronized void cleanCache() {
for (Iterator<CleanupKey> iterator = keysToClean.iterator(); iterator.hasNext();) {
CleanupKey cleanupKey = iterator.next();
iterator.remove();
if (cleanupKey.readerCacheKeyId == null || cleanupKey.entity.isOpen() == false) {
if (cleanupKey.readerCacheKeyId == null || !cleanupKey.entity.isOpen()) {
// null indicates full cleanup, as does a closed shard
currentFullClean.add(cleanupKey.entity.getCacheIdentity());
} else {
Expand Down

0 comments on commit 4d2b5ed

Please sign in to comment.