1
0
Fork 0

Fixed array index insertion.

This commit is contained in:
Michael Hackstein 2016-03-23 17:31:11 +01:00
parent fb5bcfcf82
commit bf6a4fedd9
1 changed files with 3 additions and 3 deletions

View File

@ -308,17 +308,17 @@ void PathBasedIndex::buildIndexValues(
auto moveOn = [&](VPackSlice something) -> void {
auto it = seen.find(something);
if (it != seen.end()) {
if (it == seen.end()) {
seen.insert(something);
sliceStack.push_back(something);
buildIndexValues(document, level+1, toInsert, sliceStack);
buildIndexValues(document, level + 1, toInsert, sliceStack);
sliceStack.pop_back();
}
};
for (auto const& member : VPackArrayIterator(current)) {
VPackSlice current2(member);
bool doneNull = false;
for (size_t i = _expanding[level]+1; i < n; i++) {
for (size_t i = _expanding[level] + 1; i < n; i++) {
if (!current2.isObject()) {
if (!_sparse) {
moveOn(arangodb::basics::VelocyPackHelper::NullValue());