DBZ-5031 Stop skipping message if last received lsn is higher or equal to the startStreamingLsn in WalPositionLocation

This commit is contained in:
Jun Zhao 2022-06-16 14:44:19 -07:00 committed by Jiri Pechanec
parent 44107961e5
commit 29fbdc03bf

View File

@ -130,7 +130,7 @@ public boolean skipMessage(Lsn lsn) {
if (passMessages) {
return false;
}
if (startStreamingLsn == null || startStreamingLsn.equals(lsn)) {
if (startStreamingLsn == null || startStreamingLsn.compareTo(lsn) <= 0) {
LOGGER.info("Message with LSN '{}' arrived, switching off the filtering", lsn);
passMessages = true;
return false;