Update lastModificationTime in missing spots

This commit is contained in:
Dimos Raptis 2020-10-23 10:07:38 +01:00
parent d8a5f19fb3
commit e2a22ba9e8
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,8 @@ class ErrorFlowTransition(
flowState = FlowState.Finished, flowState = FlowState.Finished,
checkpointState = startingState.checkpoint.checkpointState.copy( checkpointState = startingState.checkpoint.checkpointState.copy(
numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1 numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1
) ),
lastModificationTime = context.time
) )
currentState = currentState.copy( currentState = currentState.copy(
checkpoint = newCheckpoint, checkpoint = newCheckpoint,

View File

@ -371,7 +371,8 @@ class TopLevelTransition(
status = Checkpoint.FlowStatus.HOSPITALIZED, status = Checkpoint.FlowStatus.HOSPITALIZED,
checkpointState = startingState.checkpoint.checkpointState.copy( checkpointState = startingState.checkpoint.checkpointState.copy(
numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1 numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1
) ),
lastModificationTime = context.time
), ),
pendingDeduplicationHandlers = startingState.pendingDeduplicationHandlers - flowStartEvents, pendingDeduplicationHandlers = startingState.pendingDeduplicationHandlers - flowStartEvents,
closedSessionsPendingToBeSignalled = emptyMap() closedSessionsPendingToBeSignalled = emptyMap()