REQUIRED主事务内多个NESTED次事务不提交事务bug (#531)
* 解决REQUIRED主事务内多个NESTED次事务不提交事务bug
This commit is contained in:
parent
68a090fc99
commit
b5417788d1
@ -220,7 +220,8 @@ public class ConnectionFactory {
|
||||
*/
|
||||
public static boolean hasSavepoint(String xid) {
|
||||
Map<String, List<SavePointHolder>> savePointMap = SAVEPOINT_CONNECTION_HOLDER.get();
|
||||
return !CollectionUtils.isEmpty(savePointMap.get(xid));
|
||||
List<SavePointHolder> savePointHolders = savePointMap.get(xid);
|
||||
return !CollectionUtils.isEmpty(savePointHolders) && savePointHolders.stream().anyMatch(savePointHolder -> !CollectionUtils.isEmpty(savePointHolder.getSavePoints()));
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user