From b3626c2284ec815340dca82c921c14ee0328c135 Mon Sep 17 00:00:00 2001 From: Jack Conradson Date: Thu, 4 Apr 2024 10:57:49 -0700 Subject: [PATCH] fix push to middle bug --- .../elasticsearch/blobcache/shared/SharedBlobCacheService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java b/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java index 6714bf712e85a..8a1e3fd24ace3 100644 --- a/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java +++ b/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java @@ -1319,7 +1319,7 @@ private void pushEntryToMiddle(final LRUCacheEntry entry) { middle.head = entry; middle.tail = entry; } else { - entry.next = middle.head.next; + entry.next = middle.head; middle.head.prev = entry; middle.head = entry; }