aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-17 19:56:06 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-02-07 23:34:36 +0100
commitfb94d5cabd51d57aa82a9857ab20f5f4bd323378 (patch)
tree2b68d01fdde91e46f3f646e3ad0a9efaeedb1d27 /misc
parent2ceece3ef384385d886f6aed5311d9b6dbbdd6dd (diff)
NarInfoDiskCache: Keep BinaryCache.id stable and improve test
Fixes #3898 The entire `BinaryCaches` row used to get replaced after it became stale according to the `timestamp` column. In a concurrent scenario, this leads to foreign key conflicts as different instances of the in-process `state.caches` cache now differ, with the consequence that the older process still tries to use the `id` number of the old record. Furthermore, this phenomenon appears to have caused the cache for actual narinfos to be erased about every week, while the default ttl for narinfos was supposed to be 30 days.
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions