# HG changeset patch # User Sebastien Jodogne # Date 1531384982 -7200 # Node ID d33659c28c6b9606cb800516733564695e76369f # Parent 73bc0c32547cc2056abe6f8a57c024a7c5e8f8d6 fix missing transaction diff -r 73bc0c32547c -r d33659c28c6b OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Mon Jul 09 13:02:56 2018 +0200 +++ b/OrthancServer/ServerIndex.cpp Thu Jul 12 10:43:02 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);