Fixed a deadlock that occurs when running a split network map and doorman. (#470)

This commit is contained in:
Clinton 2018-03-21 15:00:46 +00:00 committed by GitHub
parent 3db40bb392
commit a386e71cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ class PersistentCertificateSigningRequestStorage(private val database: CordaPers
}
override fun getRequests(requestStatus: RequestStatus): List<CertificateSigningRequest> {
return database.transaction {
return database.transaction(TransactionIsolationLevel.SERIALIZABLE) {
val builder = session.criteriaBuilder
val query = builder.createQuery(CertificateSigningRequestEntity::class.java).run {
from(CertificateSigningRequestEntity::class.java).run {