Mercurial > hg > orthanc
changeset 2718:bf77f58f3dee jobs
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Jul 2018 10:43:21 +0200 |
parents | d33659c28c6b (diff) 1b4ba91fe795 (current diff) |
children | db0f33b2aeeb |
files | |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Tue Jul 10 11:29:30 2018 +0200 +++ b/OrthancServer/ServerIndex.cpp Thu Jul 12 10:43:21 2018 +0200 @@ -1186,7 +1186,12 @@ { boost::mutex::scoped_lock lock(mutex_); + + // Fix wrt. Orthanc <= 1.3.2: A transaction was missing, as + // "GetLastChange()" involves calls to "GetPublicId()" + Transaction transaction(*this); db_.GetChanges(changes, done, since, maxResults); + transaction.Commit(0); } FormatLog(target, changes, "Changes", done, since); @@ -1199,7 +1204,12 @@ { boost::mutex::scoped_lock lock(mutex_); + + // Fix wrt. Orthanc <= 1.3.2: A transaction was missing, as + // "GetLastChange()" involves calls to "GetPublicId()" + Transaction transaction(*this); db_.GetLastChange(changes); + transaction.Commit(0); } FormatLog(target, changes, "Changes", true, 0);