seata 1.4版本 AT模式

vcirk6k6  于 22天前  发布在  其他
关注(0)|答案(1)|浏览(17)

有什么办法可以在不加全局事务注解的前提下,就可以判断我当前要操作的数据是否被其他全局事务所持有

eaf3rand

eaf3rand1#

目前不支持直接使用api查询相关锁,只允许通过@GlobalLock注解加上使用被seata所代理的数据源进行对数据update等操作时,如果数据被锁定会抛异常提示.
At present, it is not supported to directly use the api to query related locks. Only when updating the data through the @GlobalLock annotation and using the data source proxied by seata, an exception will be thrown if the data is locked.

相关问题