Skip to content

Commit 861ef88

Browse files
committed
Expose savepoint callbacks on TransactionSynchronization
Closes gh-30509
1 parent 193424c commit 861ef88

File tree

5 files changed

+167
-53
lines changed

5 files changed

+167
-53
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -478,9 +478,7 @@ public boolean isRollbackOnly() {
478478

479479
@Override
480480
public void flush() {
481-
if (TransactionSynchronizationManager.isSynchronizationActive()) {
482-
TransactionSynchronizationUtils.triggerFlush();
483-
}
481+
TransactionSynchronizationUtils.triggerFlush();
484482
}
485483
}
486484

0 commit comments

Comments
 (0)