mirror of
https://github.com/corda/corda.git
synced 2025-02-22 18:12:53 +00:00
NOTICK Fix KilledFlowTransition
after merge
This commit is contained in:
parent
4ccd0fd3df
commit
7fe2845272
@ -25,10 +25,11 @@ class KilledFlowTransition(
|
|||||||
val killedFlowErrorMessage = createErrorMessageFromError(killedFlowError)
|
val killedFlowErrorMessage = createErrorMessageFromError(killedFlowError)
|
||||||
val errorMessages = listOf(killedFlowErrorMessage)
|
val errorMessages = listOf(killedFlowErrorMessage)
|
||||||
|
|
||||||
val (initiatedSessions, newSessions) = bufferErrorMessagesInInitiatingSessions(startingState.checkpoint.sessions, errorMessages)
|
val (initiatedSessions, newSessions) = bufferErrorMessagesInInitiatingSessions(
|
||||||
val newCheckpoint = startingState.checkpoint.copy(
|
startingState.checkpoint.checkpointState.sessions,
|
||||||
sessions = newSessions
|
errorMessages
|
||||||
)
|
)
|
||||||
|
val newCheckpoint = startingState.checkpoint.setSessions(sessions = newSessions)
|
||||||
currentState = currentState.copy(checkpoint = newCheckpoint)
|
currentState = currentState.copy(checkpoint = newCheckpoint)
|
||||||
actions.add(
|
actions.add(
|
||||||
Action.PropagateErrors(
|
Action.PropagateErrors(
|
||||||
@ -51,7 +52,7 @@ class KilledFlowTransition(
|
|||||||
Action.ReleaseSoftLocks(context.id.uuid),
|
Action.ReleaseSoftLocks(context.id.uuid),
|
||||||
Action.CommitTransaction,
|
Action.CommitTransaction,
|
||||||
Action.AcknowledgeMessages(currentState.pendingDeduplicationHandlers),
|
Action.AcknowledgeMessages(currentState.pendingDeduplicationHandlers),
|
||||||
Action.RemoveSessionBindings(currentState.checkpoint.sessions.keys)
|
Action.RemoveSessionBindings(currentState.checkpoint.checkpointState.sessions.keys)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user