Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4619:fda80844b920 db-changes
separate db retries by 100ms instead of 50ms to simplify documentation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Apr 2021 14:02:21 +0200 |
parents | 2684544ff03c |
children | 95ffe3b6ef7c |
comparison
equal
deleted
inserted
replaced
4618:6c4081ae3bb8 | 4619:fda80844b920 |
---|---|
647 else | 647 else |
648 { | 648 { |
649 attempt++; | 649 attempt++; |
650 | 650 |
651 // The "rand()" adds some jitter to de-synchronize writers | 651 // The "rand()" adds some jitter to de-synchronize writers |
652 boost::this_thread::sleep(boost::posix_time::milliseconds(50 * attempt + 5 * (rand() % 10))); | 652 boost::this_thread::sleep(boost::posix_time::milliseconds(100 * attempt + 5 * (rand() % 10))); |
653 } | 653 } |
654 } | 654 } |
655 else | 655 else |
656 { | 656 { |
657 throw; | 657 throw; |