Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Allow to trim all ops above a certain seq# with a term lower than X -…
Browse files Browse the repository at this point in the history
… fixes on PR elastic#5

Relates to elastic#10708
  • Loading branch information
Vladimir Dolzhenko committed May 4, 2018
1 parent 1e67a8a commit d454a30
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ public void resync(final IndexShard indexShard, final ActionListener<ResyncTask>
ActionListener<ResyncTask> resyncListener = null;
try {
final long startingSeqNo = indexShard.getGlobalCheckpoint() + 1;
final SeqNoStats seqNoStats = indexShard.seqNoStats();
final long maxSeqNo = seqNoStats != null ? seqNoStats.getMaxSeqNo() : SequenceNumbers.UNASSIGNED_SEQ_NO;
Translog.Snapshot snapshot = indexShard.newTranslogSnapshotFromMinSeqNo(startingSeqNo);
final long maxSeqNo = indexShard.seqNoStats().getMaxSeqNo();
resyncListener = new ActionListener<ResyncTask>() {
@Override
public void onResponse(final ResyncTask resyncTask) {
Expand Down

0 comments on commit d454a30

Please sign in to comment.