Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPluginDatabase.cpp @ 3078:147497152ce3 db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jan 2019 12:47:17 +0100 |
parents | 8bc2cb1335f4 |
children | 65e2bfa953ef |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPluginDatabase.cpp Thu Jan 03 10:06:42 2019 +0100 +++ b/Plugins/Engine/OrthancPluginDatabase.cpp Thu Jan 03 12:47:17 2019 +0100 @@ -1059,7 +1059,8 @@ } else { - const OrthancPluginChange& change = *reinterpret_cast<const OrthancPluginChange*>(answer.valueGeneric); + const OrthancPluginChange& change = + *reinterpret_cast<const OrthancPluginChange*>(answer.valueGeneric); assert(answerChanges_ != NULL); answerChanges_->push_back (ServerIndexChange(change.seq, @@ -1113,6 +1114,8 @@ throw OrthancException(ErrorCode_DatabasePlugin); } + printf(" ++ [%s]\n", match.resourceId); + assert(answerMatchingResources_ != NULL); answerMatchingResources_->push_back(match.resourceId); @@ -1176,11 +1179,10 @@ lookup[i].EncodeForPlugins(constraints[i], constraintsValues[i]); } + ResetAnswers(); answerMatchingResources_ = &resourcesId; answerMatchingInstances_ = instancesId; - ResetAnswers(); - CheckSuccess(extensions_.lookupResources(GetContext(), payload_, lookup.size(), (lookup.empty() ? NULL : &constraints[0]), Plugins::Convert(queryLevel),