diff options
| author | Christopher Ormaza <chris.ormaza@gmail.com> | 2018-07-16 22:57:05 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-01-17 12:20:03 +0000 |
| commit | 51de5eb0418a5b7954e4dfb3849e2b00ff110cdd (patch) | |
| tree | 507d63a595a4e4458a45cb51744977a69d18767d /addons/web/static/src/js/views/basic | |
| parent | 0871ed02ab04cf7daf7a46727d8cd084fe597e24 (diff) | |
[FIX] core: disable wait_callback during copy_from
Apparently some solutions (e.g. bitnami) deploy odoo using async
workers, and not all pg/psycopg2 features are supported in that mode,
notably COPY FROM (bulk-copying data from a stream to postgres). Work
around this issue by disabling "async mode" as we do the copy (by
resetting the wait callback) then re-enabling it.
While this is not an officially supported run mode, it should Do No
Harmâ„¢ for normal operations and could help users and clients.
Of important note: while this fixes an error running in async mode, it
will also prevent the worker from yielding while copy_from is
executing. Hopefully that doesn't take too long (as the entire point
of the copy_from is to be fast) but there you are.
Fixes odoo/odoo#24145
closes odoo/odoo#43481
X-original-commit: c4583cf89c2b24085a2eeafea5ef76f474c5ff84
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
