Commit 763806e0 authored by Julien Muchembled's avatar Julien Muchembled

client: revert incorrect memory optimization

Since commit d2d77437 ("client: make the cache
tolerant to late invalidations when the entry is in the history queue"),
invalidated items became current again when they were moved to the history
queue, which was wrong for 2 reasons:
- only the last items of _oid_dict values may have next_tid=None,
- and for such items, they could be wrongly reused when caching the real
  current data.
parent 5f0c93f5
......@@ -121,7 +121,7 @@ class ClientCache(object):
item.expire = self._time + self._life_time
self._size -= len( = item.next_tid = None = None
if self._history_size < self._max_history_size:
self._history_size += 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment