KEYCLOAK-8462 Close delegates properly
This commit is contained in:
parent
6fd4a02f95
commit
7f1c03a122
1 changed files with 3 additions and 4 deletions
|
@ -147,6 +147,9 @@ public class StoreFactoryCacheSession implements CachedStoreFactoryProvider {
|
|||
}
|
||||
|
||||
public void close() {
|
||||
if (delegate != null) {
|
||||
delegate.close();
|
||||
}
|
||||
}
|
||||
|
||||
private KeycloakTransaction getPrepareTransaction() {
|
||||
|
@ -193,10 +196,6 @@ public class StoreFactoryCacheSession implements CachedStoreFactoryProvider {
|
|||
@Override
|
||||
public void commit() {
|
||||
try {
|
||||
if (getDelegate() == null) return;
|
||||
if (clearAll) {
|
||||
cache.clear();
|
||||
}
|
||||
runInvalidations();
|
||||
transactionActive = false;
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue