diff options
| author | Fabien Meghazi <fme@odoo.com> | 2019-03-07 17:32:04 +0000 |
|---|---|---|
| committer | Fabien Meghazi <fme@odoo.com> | 2019-03-18 16:11:25 +0000 |
| commit | f1c72ee8ee44c35707d5a18167eb8efeca3c4a6f (patch) | |
| tree | afedfeb60fbd06c482124fdd143ad4d981998f0b /addons/web/static/src/xml | |
| parent | 744bdd275eff08fe7593dd8ca7aa9162b54ab275 (diff) | |
[FIX] base: fix ir.logging database locking when using --log-db
Before this patch, the ir.logging's write_uid field was a many2one which
could cause a module install/update to hang when the module is changing
the res.users model schema and when this module causes to orm to warn
through the logger. (eg: declaring two res.users fields with the same
string attribute)
In such situation the transaction cursor that is processing the
res_users table alteration will be granted an exclusive postgresql lock
hence causing the ir_logging insertion to block because of the write_uid
foreign key to res_users.
This issue has never been raised by runbot as it is using a remote
database with --log-db
Note: the write_uid conversion from m2o to int was left over in commit e6a5d82
closes odoo/odoo#32015
Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
