[hotfix][mysql] Fix the binlog position didn't update when emit DDL (#925)

pull/926/head
Dian Qi 3 years ago committed by GitHub
parent a8879bf4b0
commit 64e3408b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -89,6 +89,8 @@ public final class MySqlRecordEmitter<T>
splitState.asBinlogSplitState().recordSchema(tableChange.getId(), tableChange);
}
if (includeSchemaChanges) {
BinlogOffset position = getBinlogPosition(element);
splitState.asBinlogSplitState().setStartingOffset(position);
emitElement(element, output);
}
} else if (isDataChangeRecord(element)) {

Loading…
Cancel
Save