[mongodb][hotfix] Fix MongoDB's rewriteOutputBuffer to emit +I rather than +U (#2760) (#2760)

pull/2777/head
Hongshun Wang 1 year ago committed by GitHub
parent a81d4a16b9
commit cc9dbc6660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,6 +166,8 @@ public class MongoDBFetchTaskContext implements FetchTask.Context {
case INSERT: case INSERT:
case UPDATE: case UPDATE:
case REPLACE: case REPLACE:
value.put(
MongoDBEnvelope.OPERATION_TYPE_FIELD, OperationType.INSERT.getValue());
outputBuffer.put(key, changeRecord); outputBuffer.put(key, changeRecord);
break; break;
case DELETE: case DELETE:

Loading…
Cancel
Save