Fix incorrectly assign local checkpoint from max_seqno

Relates #27837
This commit is contained in:
Nhat Nguyen 2017-12-19 11:17:57 -05:00
parent 3b58582059
commit e9a3932dbc
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ public class PeerRecoveryTargetService extends AbstractComponent implements Inde
final long globalCheckpoint = Translog.readGlobalCheckpoint(recoveryTarget.translogLocation());
final Tuple<Long, Long> seqNoStats = recoveryTarget.store().loadSeqNoInfo();
long maxSeqNo = seqNoStats.v1();
long localCheckpoint = seqNoStats.v1();
long localCheckpoint = seqNoStats.v2();
if (maxSeqNo <= globalCheckpoint) {
assert localCheckpoint <= globalCheckpoint;
/*