comparison OrthancServer/Sources/SliceOrdering.cpp @ 4623:95ffe3b6ef7c db-changes

handling of revisions for metadata
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Apr 2021 17:13:03 +0200
parents 6831de40acd9
children f0038043fb97 7053502fbf97
comparison
equal deleted inserted replaced
4622:9086aeb9d9d2 4623:95ffe3b6ef7c
206 std::string s; 206 std::string s;
207 hasIndexInSeries_ = false; 207 hasIndexInSeries_ = false;
208 208
209 try 209 try
210 { 210 {
211 if (index.LookupMetadata(s, instanceId, ResourceType_Instance, MetadataType_Instance_IndexInSeries)) 211 int64_t revision; // Ignored
212 if (index.LookupMetadata(s, revision, instanceId, ResourceType_Instance, MetadataType_Instance_IndexInSeries))
212 { 213 {
213 indexInSeries_ = boost::lexical_cast<size_t>(Toolbox::StripSpaces(s)); 214 indexInSeries_ = boost::lexical_cast<size_t>(Toolbox::StripSpaces(s));
214 hasIndexInSeries_ = true; 215 hasIndexInSeries_ = true;
215 } 216 }
216 } 217 }