DBZ-1088 use correct key for update of PK insert event

This commit is contained in:
Jiri Pechanec 2019-01-17 13:48:12 +01:00 committed by Gunnar Morling
parent 1cf257478b
commit 25156730f0

View File

@ -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);
}
}