
在注册分支事务前,先创建lock,我们先看看branchSessionLock这个方法



checksql:select xid, transaction_id, branch_id, resource_id, table_name, pk, row_key, gmt_create, gmt_modified from lock_table where row_key in (?)
执行sql

可以lock

插入lock数据


下面是添加分支事务

插入分支事务

在注册分支事务前,先创建lock,我们先看看branchSessionLock这个方法
checksql:select xid, transaction_id, branch_id, resource_id, table_name, pk, row_key, gmt_create, gmt_modified from lock_table where row_key in (?)
执行sql
可以lock
插入lock数据
下面是添加分支事务
插入分支事务
本文标题:tc端分支注册流程
本文链接:https://www.haomeiwen.com/subject/lqdclrtx.html
网友评论