Skip to content

Commit

Permalink
[sqlserver] Fix get latest lsn (apache#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
GOODBOY008 authored and e-mhui committed Oct 18, 2023
1 parent 429292e commit a36fe3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public static LsnOffset getLsnPosition(Map<String, ?> offset) {
/** 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);
Expand Down

0 comments on commit a36fe3e

Please sign in to comment.