# HG changeset patch # User Sebastien Jodogne # Date 1531385001 -7200 # Node ID bf77f58f3deeeefea512c1ec1aa05148029d4a17 # Parent d33659c28c6b9606cb800516733564695e76369f# Parent 1b4ba91fe795dfbaee857b829a7d16e575e71719 merge diff -r 1b4ba91fe795 -r bf77f58f3dee OrthancServer/ServerIndex.cpp --- 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);