When lock_for_update() is used, write connection is not used.
okojoalg opened this issue · comments
Yuki Tatsunami commented
When lock_for_update() is used, read connection is used.
The solution is to use write connection if you explicitly use use_write_connection().
In practice, shouldn't we always use write connection when using lock_for_update()?