Skip to content

Commit 502dd3c

Browse files
committed
Move this logger definition
1 parent 1145674 commit 502dd3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/DocumentSubsetBitsetCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
*/
8282
public final class DocumentSubsetBitsetCache implements IndexReader.ClosedListener, Closeable, Accountable {
8383

84+
private static final Logger logger = LogManager.getLogger(DocumentSubsetBitsetCache.class);
85+
8486
/**
8587
* The TTL defaults to 2 hours. We default to a large cache size ({@link #CACHE_SIZE_SETTING}), and aggressively
8688
* expire unused entries so that the cache does not hold on to memory unnecessarily.
@@ -102,8 +104,6 @@ public final class DocumentSubsetBitsetCache implements IndexReader.ClosedListen
102104

103105
private static final BitSet NULL_MARKER = new FixedBitSet(0);
104106

105-
private static final Logger logger = LogManager.getLogger(DocumentSubsetBitsetCache.class);
106-
107107
/**
108108
* When a {@link BitSet} is evicted from {@link #bitsetCache}, we need to also remove it from {@link #keysByIndex}.
109109
* We use a {@link ReentrantReadWriteLock} to control atomicity here - the "read" side represents potential insertions to the

0 commit comments

Comments
 (0)