Skip to content

Commit 27e7a47

Browse files
author
Xin Dong
committed
Lets keep the error_state as is since it does not really do anything. Will remove this completely from the code in another PR.
1 parent 305cc39 commit 27e7a47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/QLContext.actor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ struct CompoundIndexPlugin : IndexPlugin, ReferenceCounted<CompoundIndexPlugin>,
353353
}
354354

355355
if (num_new_values > DOCLAYER_KNOBS->MULTI_MULTIKEY_INDEX_MAX) {
356+
self->error_state = true;
356357
throw multikey_index_cartesian_explosion();
357358
}
358359

@@ -519,6 +520,7 @@ struct SimpleIndexPlugin : IndexPlugin, ReferenceCounted<SimpleIndexPlugin>, Fas
519520
existing_index_entries.front().arena());
520521
if (existingDocId.compare(documentPath[documentPath.size() - 1])) {
521522
// existing index points to a different doc id that has the same value, abort.
523+
self->error_state = true;
522524
throw duplicated_key_field();
523525
}
524526
}

0 commit comments

Comments
 (0)