mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'spdvpk' of https://github.com/arangodb/arangodb into spdvpk
This commit is contained in:
commit
910d620c7d
|
@ -644,8 +644,16 @@ void Index::expandInSearchValues(VPackSlice const base,
|
|||
VPackSlice current = oneLookup.at(i);
|
||||
if (current.hasKey(TRI_SLICE_KEY_IN)) {
|
||||
std::unordered_set<VPackSlice> tmp;
|
||||
TRI_ASSERT(current.get(TRI_SLICE_KEY_IN).isArray());
|
||||
for (auto const& el : VPackArrayIterator(current.get(TRI_SLICE_KEY_IN))) {
|
||||
VPackSlice inList = current.get(TRI_SLICE_KEY_IN);
|
||||
TRI_ASSERT(inList.isArray());
|
||||
if (inList.length() == 0) {
|
||||
// Empty Array. short circuit, no matches possible
|
||||
result.clear();
|
||||
result.openArray();
|
||||
result.close();
|
||||
return;
|
||||
}
|
||||
for (auto const& el : VPackArrayIterator(inList)) {
|
||||
tmp.emplace(el);
|
||||
}
|
||||
auto& vector = elements[i];
|
||||
|
|
|
@ -114,7 +114,9 @@ TRI_doc_mptr_t* AnyIndexIterator::next() {
|
|||
}
|
||||
|
||||
void AnyIndexIterator::reset() {
|
||||
THROW_ARANGO_EXCEPTION(TRI_ERROR_NOT_IMPLEMENTED);
|
||||
_step = 0;
|
||||
_total = 0;
|
||||
_position = _initial;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue