Skip to content

Commit

Permalink
optimize: add tcc fence hook function (apache#6731)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengliefeng committed Aug 19, 2024
1 parent 3dd148f commit 081e497
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public Object prepareFence(String xid, Long branchId, String actionName, Callbac
status.setRollbackOnly();
throw new SkipCallbackWrapperException(t);
} finally {
executeWithHandling(() -> afterPrepareFence(xid, branchId, actionName), xid, branchId,"afterPrepareFence");
executeWithHandling(() -> afterPrepareFence(xid, branchId, actionName), xid, branchId, "afterPrepareFence");
}
});
}
Expand Down Expand Up @@ -194,7 +194,7 @@ public boolean commitFence(Method commitMethod, Object targetTCCBean,
@Override
public boolean rollbackFence(Method rollbackMethod, Object targetTCCBean,
String xid, Long branchId, Object[] args, String actionName) {
executeWithHandling(() -> beforeRollbackFence(xid, branchId, actionName), xid, branchId,"beforeRollbackFence");
executeWithHandling(() -> beforeRollbackFence(xid, branchId, actionName), xid, branchId, "beforeRollbackFence");
return transactionTemplate.execute(status -> {
try {
Connection conn = DataSourceUtils.getConnection(dataSource);
Expand Down

0 comments on commit 081e497

Please sign in to comment.