Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public DeletionStrategy planOperationAsPrimary(Engine.Delete delete) throws IOEx

@Override
public DeletionStrategy planOperationAsNonPrimary(Engine.Delete delete) throws IOException {
assert assertNonPrimaryOrigin(delete);
final DeletionStrategy plan;
if (hasBeenProcessedBefore.test(delete)) {
// the operation seq# was processed thus this operation was already put into lucene
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ public IndexingStrategy planOperationAsPrimary(Engine.Index index) throws IOExce

@Override
public IndexingStrategy planOperationAsNonPrimary(Engine.Index index) throws IOException {
assert assertNonPrimaryOrigin(index);
// needs to maintain the auto_id timestamp in case this replica becomes primary
if (canOptimizeAddDocument(index)) {
mayHaveBeenIndexedBefore(index);
Expand Down
Loading