[SERVER-74119] Remove BSON middle-step in MutableOplogEntry to ReplOperation type conversion Created: 16/Feb/23  Updated: 29/Oct/23  Resolved: 06/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Matt Kneiser Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-03-06, Execution Team 2023-03-20
Participants:

 Description   

The simplest approach to converting a MutableOplogEntry to a ReplOperation was to dump to BSON.

 

Given that this isn't necessary and we know which elements of a MutableOplogEntry matter to a ReplOperation, it is conceivable to construct a ReplOperation manually and skip the intermediate step of creating a BSONObj and parsing it.



 Comments   
Comment by Githook User [ 06/Mar/23 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-74119 More efficient MutableOplogEntry to ReplOperation type conversion
Branch: master
https://github.com/mongodb/mongo/commit/eb56941662d887185d864db9c242849020706c1b

Generated at Thu Feb 08 06:26:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.