|
When creating oplog entries for transactions, the top-level tenantId field needs to match the individual ops contained in the applyOps array. SERVER-69233 represents a quick-fix that was needed to unblock SERVER-66641 which addressed this issue, but we may want to look at a more efficient way of populating the tenantId than parsing the BSONObj document.
The parsing is currently done in op_observer_impl.cpp, but we may wish to consider passing the tenantId down from commitTransaction/prepareTransaction calls instead.
|