# HG changeset patch # User Sebastien Jodogne # Date 1617194148 -7200 # Node ID 37de0a5ebe865358c57fa92a7f2a34812c0c8cd2 # Parent de5e6b04442d02795996b0ab60511b1ff5190dda retries on ErrorCode_DatabaseUnavailable should be handled by the plugins diff -r de5e6b04442d -r 37de0a5ebe86 OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp --- 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;