[SERVER-71644] Avoid parsing durable catalog entry when we only need to compare as BSON Created: 28/Nov/22  Updated: 29/Oct/23  Resolved: 05/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Will Buerger
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 2022-12-12
Participants:

 Description   

When openCollection is called without a timestamp the durable catalog entry is compared as BSON against the collection instance in pending/catalog to determine which matches.

Currently we always use getParsedCatalogEntry and then re-convert the entry to BSON for the comparison above. In the code path where we know we will only need the catalog entry as BSON we should request it as BSON from the durable catalog to avoid this unnecessary conversion.



 Comments   
Comment by Githook User [ 05/Dec/22 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-71644: Avoid parsing durable catalog entry when we only need to compare as BSON
Branch: master
https://github.com/mongodb/mongo/commit/cf7c956c0dcf283f8c5442eec3cb31cc1ada2d4a

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