changeset 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 de5e6b04442d
children dfb7429f0d48
files OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
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;