Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1754:3a4f7dc00f49 db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 11:31:58 +0100 |
parents | faf2ecab3472 |
children | 98abb8d7f905 |
comparison
equal
deleted
inserted
replaced
1753:faf2ecab3472 | 1754:3a4f7dc00f49 |
---|---|
2129 | 2129 |
2130 size_t pos = 0; | 2130 size_t pos = 0; |
2131 for (std::list<int64_t>::const_iterator | 2131 for (std::list<int64_t>::const_iterator |
2132 it = tmp.begin(); it != tmp.end(); ++it, pos++) | 2132 it = tmp.begin(); it != tmp.end(); ++it, pos++) |
2133 { | 2133 { |
2134 assert(db_.GetResourceType(*it) == lookup.GetLevel()); | |
2135 | |
2134 int64_t instance; | 2136 int64_t instance; |
2135 if (!Toolbox::FindOneChildInstance(instance, db_, *it, lookup.GetLevel())) | 2137 if (!Toolbox::FindOneChildInstance(instance, db_, *it, lookup.GetLevel())) |
2136 { | 2138 { |
2137 throw OrthancException(ErrorCode_InternalError); | 2139 throw OrthancException(ErrorCode_InternalError); |
2138 } | 2140 } |