Mercurial > hg > orthanc
changeset 5494:3e02be2ccaee pg-transactions
avoid deadlock in logs
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 18 Jan 2024 10:04:14 +0100 |
parents | b3ebe249ed5b |
children | 4dd50c4b985a |
files | OrthancServer/Sources/main.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp Mon Jan 15 18:25:08 2024 +0100 +++ b/OrthancServer/Sources/main.cpp Thu Jan 18 10:04:14 2024 +0100 @@ -1674,7 +1674,8 @@ if (database.GetDatabaseCapabilities().HasMeasureLatency()) { - LOG(WARNING) << "The DB latency is " << database.MeasureLatency() << " µs"; + uint64_t latency = database.MeasureLatency(); + LOG(WARNING) << "The DB latency is " << latency << " µs"; }