Uh oh!
There was an error while loading. Please reload this page.
[FIX][18.0] queue_job: indicate that run_job need a read/write connection - #742
Conversation
Without this fix, if db_replica_host is set, Odoo might pass a readonly database cursor and the FOR UPDATE in the method would fail.
OCA-git-bot
commented
Jan 24, 2025
Hi @guewen, |
simahawk
commented
Jan 24, 2025
/ocabot merge patch |
OCA-git-bot
commented
Jan 24, 2025
Hey, thanks for contributing! Proceeding to merge this for you. |
OCA-git-bot
commented
Jan 24, 2025
Congratulations, your PR was merged at 0767459. Thanks a lot for contributing to OCA. ❤️ |
aallouche
commented
Jan 24, 2025
Thanks for the quick merge! Much appreciated. |
StefanRijnhart
commented
Jan 31, 2025
@vincent-hatakeyama Can I ask you, I'm curious why this is necessary. https://github.com/odoo/odoo/blob/b2d709b/odoo/http.py#L701-L703 seems to imply that the cursor will default to read/write. Where is the default determined as True? |
StefanRijnhart
commented
Jan 31, 2025
@vincent-hatakeyama Oh, never mind. Found it in https://github.com/odoo/odoo/blob/b2d709b/odoo/http.py#L863, when auth='none'. |
Without this fix, if db_replica_host is set, Odoo might pass a readonly database cursor and the FOR UPDATE in the method would fail.