DBZ-1088 use correct key for update of PK insert event
This commit is contained in:
parent
1cf257478b
commit
25156730f0
@ -100,7 +100,7 @@ private void emitUpdateRecord(Receiver receiver, TableSchema tableSchema)
|
||||
receiver.changeRecord(tableSchema, Operation.DELETE, oldKey, envelope, offsetContext);
|
||||
|
||||
envelope = tableSchema.getEnvelopeSchema().create(newValue, offsetContext.getSourceInfo(), clock.currentTimeInMillis());
|
||||
receiver.changeRecord(tableSchema, Operation.UPDATE, oldKey, envelope, offsetContext);
|
||||
receiver.changeRecord(tableSchema, Operation.CREATE, newKey, envelope, offsetContext);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user