[sqlserver] Fix get latest lsn (#2551)

(cherry picked from commit 6f9a064486)
pull/2694/head
gongzhongqiang 1 year ago committed by Leonard Xu
parent 5e8b77342c
commit 80cd840c34

@ -200,7 +200,7 @@ public class SqlServerUtils {
/** Fetch current largest log sequence number (LSN) of the database. */
public static LsnOffset currentLsn(SqlServerConnection connection) {
try {
Lsn maxLsn = connection.getMaxLsn(connection.database());
Lsn maxLsn = connection.getMaxTransactionLsn(connection.database());
return new LsnOffset(maxLsn, maxLsn, null);
} catch (SQLException e) {
throw new FlinkRuntimeException(e.getMessage(), e);

Loading…
Cancel
Save