forked from TrueCloudLab/frostfs-node
[#2176] neofs-node: Do not invalidate old cache items
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
e5a40b90b6
commit
8078af3424
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ func (s *ttlContainerLister) update(owner user.ID, cnr cid.ID, add bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.ttl <= time.Since(val.t) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
item := val.v
|
item := val.v
|
||||||
|
|
||||||
item.mtx.Lock()
|
item.mtx.Lock()
|
||||||
|
|
Loading…
Reference in a new issue