diff OrthancServer/Sources/OrthancWebDav.cpp @ 4551:350a22c094f2 db-changes

testing replay of transactions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Mar 2021 19:36:59 +0100
parents 8f9090b137f1
children efd90f778cd2
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancWebDav.cpp	Tue Mar 02 16:51:19 2021 +0100
+++ b/OrthancServer/Sources/OrthancWebDav.cpp	Tue Mar 02 19:36:59 2021 +0100
@@ -268,8 +268,10 @@
                        const DicomMap& mainDicomTags,
                        const Json::Value* dicomAsJson  /* unused (*) */)  ORTHANC_OVERRIDE
     {
-      Json::Value info;
-      if (context_.GetIndex().LookupResource(info, publicId, level_))
+      ServerIndex::ExpandResourceOperation operation(publicId, level_);
+      context_.GetIndex().Apply(operation);
+
+      if (operation.IsFound())
       {
         if (success_)
         {
@@ -277,7 +279,7 @@
         }
         else
         {
-          target_ = info.toStyledString();
+          target_ = operation.GetResource().toStyledString();
 
           // Replace UNIX newlines with DOS newlines 
           boost::replace_all(target_, "\n", "\r\n");