Skip to content

Commit 8e7f4cc

Browse files
authored
LRUStoreCache: reset current size on invalidation (#1081)
* LRUStoreCache: reset current size on invalidation fixes #1076 * Add release log * Update docs/release.rst
1 parent e3b6c7f commit 8e7f4cc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/release.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Maintenance
2828
* Update GitHub issue templates with `YAML` format.
2929
By :user:`Saransh Chopra <Saransh-cpp>` :issue:`1079`.
3030

31-
3231
Bug fixes
3332
~~~~~~~~~
3433

@@ -37,6 +36,9 @@ Bug fixes
3736
that had previously been excluded from testing, and type annotations were added to the N5 codebase.
3837
By :user:`Davis Bennett <d-v-b>`; :issue:`1092`.
3938

39+
* Fix bug in LRUEStoreCache in which the current size wasn't reset on invalidation.
40+
By :user:`BGCMHou <BGCMHou>` and :user:`Josh Moore <joshmoore>` :issue:`1076`, :issue:`1077`.
41+
4042
.. _release_2.12.0:
4143

4244
2.12.0

zarr/storage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,6 +2398,7 @@ def invalidate(self):
23982398
with self._mutex:
23992399
self._values_cache.clear()
24002400
self._invalidate_keys()
2401+
self._current_size = 0
24012402

24022403
def invalidate_values(self):
24032404
"""Clear the values cache."""

0 commit comments

Comments
 (0)