mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #1897 , memory event store ack null
This commit is contained in:
@@ -19,6 +19,8 @@ public class PositionRange<T extends Position> implements Serializable {
|
||||
// add by ljh at 2012-09-05,用于记录一个可被ack的位置,保证每次提交到cursor中的位置是一个完整事务的结束
|
||||
private T ack;
|
||||
private T end;
|
||||
// add by ljh at 2019-06-25,用于精确记录ringbuffer中的位点
|
||||
private Long endSeq = -1L;
|
||||
|
||||
public PositionRange(){
|
||||
}
|
||||
@@ -52,6 +54,14 @@ public class PositionRange<T extends Position> implements Serializable {
|
||||
this.ack = ack;
|
||||
}
|
||||
|
||||
public Long getEndSeq() {
|
||||
return endSeq;
|
||||
}
|
||||
|
||||
public void setEndSeq(Long endSeq) {
|
||||
this.endSeq = endSeq;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this, CanalToStringStyle.DEFAULT_STYLE);
|
||||
|
||||
Reference in New Issue
Block a user