mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed tsdb test
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.alibaba.otter.canal.protocol.position;
|
||||
|
||||
|
||||
/**
|
||||
* 数据库对象的唯一标示
|
||||
*
|
||||
@@ -121,4 +122,18 @@ public class EntryPosition extends TimePosition {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
||||
*/
|
||||
public int compareTo(EntryPosition o) {
|
||||
final int val = journalName.compareTo(o.journalName);
|
||||
|
||||
if (val == 0) {
|
||||
return (int) (position - o.position);
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user