Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkewwei committed Jan 18, 2025
1 parent d03b6a0 commit 93c84bb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,11 @@ public IndexResult index(Index index) throws IOException {
* or calls updateDocument.
*/
final IndexingStrategy plan = indexingStrategyForOperation(index);
reservedDocs = plan.reservedDocs;
if (index.origin() == Operation.Origin.PRIMARY) {
reservedDocs = plan.reservedDocs;
} else {
reservedDocs = 0;
}

final IndexResult indexResult;
if (plan.earlyResultOnPreFlightError.isPresent()) {
Expand Down

0 comments on commit 93c84bb

Please sign in to comment.