Skip to content

Commit 172987c

Browse files
committed
Ignore checkpointOnRefresh after restore
Closes gh-32978
1 parent 47a5ebf commit 172987c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
9898
public static final String ON_REFRESH_VALUE = "onRefresh";
9999

100100

101-
private static final boolean checkpointOnRefresh =
101+
private static boolean checkpointOnRefresh =
102102
ON_REFRESH_VALUE.equalsIgnoreCase(SpringProperties.getProperty(CHECKPOINT_PROPERTY_NAME));
103103

104104
private static final boolean exitOnRefresh =
@@ -194,6 +194,7 @@ public void stop() {
194194
@Override
195195
public void onRefresh() {
196196
if (checkpointOnRefresh) {
197+
checkpointOnRefresh = false;
197198
new CracDelegate().checkpointRestore();
198199
}
199200
if (exitOnRefresh) {

0 commit comments

Comments
 (0)