Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4609:37de0a5ebe86 db-changes
retries on ErrorCode_DatabaseUnavailable should be handled by the plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 31 Mar 2021 14:35:48 +0200 |
parents | f75c63aa9de0 |
children | 4982733a4e39 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Wed Mar 31 14:34:41 2021 +0200 +++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Wed Mar 31 14:35:48 2021 +0200 @@ -648,18 +648,6 @@ boost::this_thread::sleep(boost::posix_time::milliseconds(100 * count)); } } - else if (e.GetErrorCode() == ErrorCode_DatabaseUnavailable) - { - if (count == maxRetries_) - { - throw; - } - else - { - count++; - boost::this_thread::sleep(boost::posix_time::milliseconds(1000)); - } - } else { throw;