Skip to content

Commit

Permalink
Ignore checkpointOnRefresh after restore
Browse files Browse the repository at this point in the history
Closes gh-32978
  • Loading branch information
sdeleuze committed Jun 7, 2024
1 parent 47a5ebf commit 172987c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -194,6 +194,7 @@ public void stop() {
@Override
public void onRefresh() {
if (checkpointOnRefresh) {
checkpointOnRefresh = false;
new CracDelegate().checkpointRestore();
}
if (exitOnRefresh) {
Expand Down

0 comments on commit 172987c

Please sign in to comment.