[SERVER-78239] Optimize isImplicitlyReplicated() check Created: 20/Jun/23  Updated: 29/Oct/23  Resolved: 21/Jun/23

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

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Participants:

 Description   

At https://github.com/10gen/mongo/blob/53837263e1973f51b6960bafb618102d93eb1632/src/mongo/db/namespace_string.cpp#L412 we have a number of tests OR'd together for isImplicitlyReplicated(), but all of them begin with the predicate isConfigDB(). We can short circuit immediately if we begin with that test, since in the common case this will be false.

 



 Comments   
Comment by Githook User [ 21/Jun/23 ]

Author:

{'name': 'Colin Stolley', 'email': 'colin.stolley@mongodb.com', 'username': 'ccstolley'}

Message: SERVER-78239: Optimize isImplicitlyReplicated().
Branch: v7.0
https://github.com/mongodb/mongo/commit/2c7f3b5e5205d162e787be1585ff6401e7bba023

Comment by Githook User [ 21/Jun/23 ]

Author:

{'name': 'Colin Stolley', 'email': 'colin.stolley@mongodb.com', 'username': 'ccstolley'}

Message: SERVER-78239: Optimize isImplicitlyReplicated().
Branch: master
https://github.com/mongodb/mongo/commit/6d9146010bf56a8a1c9e2929e66eb826991406d3

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