DBZ-1081 JavaDoc; adding Addison Higham to COPYRIGHT.txt

This commit is contained in:
Gunnar Morling 2019-01-15 18:06:30 +01:00
parent 889b307b9d
commit af01d10886
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
Aaron Rosenberg
Addison Higham
Akshath Patkar
Amit Sela
Andreas Bergmeier

View File

@ -170,6 +170,10 @@ protected ServerInfo.ReplicationSlot queryForSlot(String slotName, String databa
}, map);
}
/**
* Obtains the LSN to resume streaming from. On PG 9.5 there is no confirmed_flushed_lsn yet, so restart_lsn will be
* read instead. This may result in more records to be re-read after a restart.
*/
private Long parseConfirmedFlushLsn(String slotName, String pluginName, String database, ResultSet rs) {
Long confirmedFlushedLsn = null;
@ -182,7 +186,7 @@ private Long parseConfirmedFlushLsn(String slotName, String pluginName, String d
confirmedFlushedLsn = tryParseLsn(slotName, pluginName, database, rs, "restart_lsn");
}
catch (SQLException e2) {
throw new ConnectException("Neither confirmed_flush_lsn or restart_lsn could be found");
throw new ConnectException("Neither confirmed_flush_lsn nor restart_lsn could be found");
}
}