mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
Tolerate duplicates to prevent a PK violation. (#2460)
This commit is contained in:
parent
9b8fe3a1d4
commit
9c2b5f4ced
@ -55,7 +55,7 @@ class DBTransactionMappingStorage : StateMachineRecordedTransactionMappingStorag
|
|||||||
val updates: PublishSubject<StateMachineTransactionMapping> = PublishSubject.create()
|
val updates: PublishSubject<StateMachineTransactionMapping> = PublishSubject.create()
|
||||||
|
|
||||||
override fun addMapping(stateMachineRunId: StateMachineRunId, transactionId: SecureHash) {
|
override fun addMapping(stateMachineRunId: StateMachineRunId, transactionId: SecureHash) {
|
||||||
stateMachineTransactionMap[transactionId] = stateMachineRunId
|
stateMachineTransactionMap.addWithDuplicatesAllowed(transactionId, stateMachineRunId)
|
||||||
updates.bufferUntilDatabaseCommit().onNext(StateMachineTransactionMapping(stateMachineRunId, transactionId))
|
updates.bufferUntilDatabaseCommit().onNext(StateMachineTransactionMapping(stateMachineRunId, transactionId))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user