comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5492:26877f4b306f pg-transactions

now only logging 'Maximum transactions retries reached' as an error
author Alain Mazy <am@osimis.io>
date Wed, 10 Jan 2024 15:26:10 +0100
parents dceed5e3d6a9
children 4dd50c4b985a
comparison
equal deleted inserted replaced
5482:4b51cf06b697 5492:26877f4b306f
630 { 630 {
631 if (e.GetErrorCode() == ErrorCode_DatabaseCannotSerialize) 631 if (e.GetErrorCode() == ErrorCode_DatabaseCannotSerialize)
632 { 632 {
633 if (attempt >= maxRetries_) 633 if (attempt >= maxRetries_)
634 { 634 {
635 LOG(ERROR) << "Maximum transactions retries reached " << e.GetDetails();
635 throw; 636 throw;
636 } 637 }
637 else 638 else
638 { 639 {
639 attempt++; 640 attempt++;