Browse Source

Ignore checkpointOnRefresh after restore

Closes gh-32978
pull/33047/head
Sébastien Deleuze 2 years ago
parent
commit
172987c874
  1. 3
      spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

3
spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

@ -98,7 +98,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor @@ -98,7 +98,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
public static final String ON_REFRESH_VALUE = "onRefresh";
private static final boolean checkpointOnRefresh =
private static boolean checkpointOnRefresh =
ON_REFRESH_VALUE.equalsIgnoreCase(SpringProperties.getProperty(CHECKPOINT_PROPERTY_NAME));
private static final boolean exitOnRefresh =
@ -194,6 +194,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor @@ -194,6 +194,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@Override
public void onRefresh() {
if (checkpointOnRefresh) {
checkpointOnRefresh = false;
new CracDelegate().checkpointRestore();
}
if (exitOnRefresh) {

Loading…
Cancel
Save