mirror of
https://github.com/corda/corda.git
synced 2025-04-15 15:07:03 +00:00
CORDA-977 PK constraint violation when up adding Mapping to DBTransactionMapping store (#2457)
* Default jolokia version with optional override in CorDapp project gradle file. * Tolerate duplicates to prevent a PK violation.
This commit is contained in:
parent
2a3c4eb3cd
commit
8e2524f35d
@ -55,7 +55,7 @@ class DBTransactionMappingStorage : StateMachineRecordedTransactionMappingStorag
|
||||
val updates: PublishSubject<StateMachineTransactionMapping> = PublishSubject.create()
|
||||
|
||||
override fun addMapping(stateMachineRunId: StateMachineRunId, transactionId: SecureHash) {
|
||||
stateMachineTransactionMap[transactionId] = stateMachineRunId
|
||||
stateMachineTransactionMap.addWithDuplicatesAllowed(transactionId, stateMachineRunId)
|
||||
updates.bufferUntilDatabaseCommit().onNext(StateMachineTransactionMapping(stateMachineRunId, transactionId))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user