Skip to content

Commit 081e497

Browse files
author
chengliefeng
committed
optimize: add tcc fence hook function (#6731)
1 parent 3dd148f commit 081e497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring/src/main/java/org/apache/seata/rm/fence/SpringFenceHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public Object prepareFence(String xid, Long branchId, String actionName, Callbac
131131
status.setRollbackOnly();
132132
throw new SkipCallbackWrapperException(t);
133133
} finally {
134-
executeWithHandling(() -> afterPrepareFence(xid, branchId, actionName), xid, branchId,"afterPrepareFence");
134+
executeWithHandling(() -> afterPrepareFence(xid, branchId, actionName), xid, branchId, "afterPrepareFence");
135135
}
136136
});
137137
}
@@ -194,7 +194,7 @@ public boolean commitFence(Method commitMethod, Object targetTCCBean,
194194
@Override
195195
public boolean rollbackFence(Method rollbackMethod, Object targetTCCBean,
196196
String xid, Long branchId, Object[] args, String actionName) {
197-
executeWithHandling(() -> beforeRollbackFence(xid, branchId, actionName), xid, branchId,"beforeRollbackFence");
197+
executeWithHandling(() -> beforeRollbackFence(xid, branchId, actionName), xid, branchId, "beforeRollbackFence");
198198
return transactionTemplate.execute(status -> {
199199
try {
200200
Connection conn = DataSourceUtils.getConnection(dataSource);

0 commit comments

Comments
 (0)