Skip to content

Commit

Permalink
fix push to middle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdconrad committed Apr 4, 2024
1 parent b228a16 commit b3626c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b3626c2

Please sign in to comment.