You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/19 15:42:37 UTC

[GitHub] [shardingsphere] FlyingZC commented on issue #20789: If there is write operation in the same thread and database connection, all the following read operations are not from the master database to ensure data consistency.

FlyingZC commented on issue #20789:
URL: https://github.com/apache/shardingsphere/issues/20789#issuecomment-1284218224

   Now tansactionHolder(or TransactionConnectionContext) is at the thread level. When the inner transaction commits, the inTransaction flag will be cleared, which will cause the inTransaction read by the outer transaction to be false, resulting in routing to the slave database.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org