Files
chatmail-core/src
bjoern 8487eefe46 config_cache fixes (#3145)
* add simple backup export/import test

this test fails on current master
until the context is recrated.

* avoid config_cache races

adds needed SQL-statements to config_cache locking.

otherwise, another thread may alter the database
eg. between SELECT and the config_cache update -
resulting in the wrong value being written to config_cache.

* also update config_cache on initializing tables

VERSION_CFG is also set later, however,
not doing it here will result in bugs when we change DBVERSION at some point.

as this alters only VERSION_CFG and that is executed sequentially anyway,
race conditions between SQL and config_cache
seems not to be an issue in this case.

* clear config_cache after backup import

import replaces the whole database,
so config_cache needs to be invalidated as well.

we do that before import,
so in case a backup is imported only partly,
the cache does not add additional problems.

* update CHANGELOG
2022-03-22 22:46:29 +01:00
..
2022-01-31 16:07:20 +01:00
2022-01-31 13:39:48 +01:00
2022-03-16 10:46:58 +01:00
2022-03-22 22:46:29 +01:00
2022-01-07 14:22:37 +00:00
2022-01-07 14:22:37 +00:00
2022-03-20 15:23:11 +01:00
2022-03-16 10:46:58 +01:00
2021-11-24 23:23:01 +01:00
2022-03-08 11:29:45 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2021-12-31 13:57:45 +00:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-03-20 14:57:14 +00:00
2021-04-25 22:33:14 +03:00
2022-03-08 22:57:51 +01:00
2022-03-16 10:46:58 +01:00
2022-03-20 15:23:11 +01:00
2022-03-22 22:46:29 +01:00
2022-03-20 15:23:11 +01:00
2021-12-28 23:29:37 +01:00
2022-02-05 12:42:14 +00:00
2022-03-16 10:46:58 +01:00
2021-11-02 22:09:04 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-02-27 13:29:02 +00:00
2022-01-07 14:22:37 +00:00
2022-02-27 13:29:02 +00:00
2022-02-27 13:29:02 +00:00
2022-03-08 22:57:51 +01:00
2022-03-16 10:46:58 +01:00
2022-01-31 13:39:48 +01:00
2022-03-16 10:46:58 +01:00
2022-02-27 13:29:02 +00:00
2022-02-27 13:29:02 +00:00
2022-03-22 22:46:29 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2022-03-16 10:46:58 +01:00
2021-08-22 15:34:14 +02:00
2022-03-08 22:57:51 +01:00
2022-03-16 10:46:58 +01:00