[SERVER-74206] Use getSiblingDB instead of getDB in feature_flag_util.js Created: 21/Feb/23  Updated: 29/Oct/23  Resolved: 28/Feb/23

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

Type: Bug Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-03-06
Participants:
Linked BF Score: 25

 Description   

The db.getDB call can fail in case the function doesn't exist.

Instead we should use the db.getSiblingDB method.



 Comments   
Comment by Githook User [ 27/Feb/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-74206 Use getSiblingDB if getDB doesn't exist
Branch: master
https://github.com/mongodb/mongo/commit/2285ffddafaab361411832956e15c20fd42513b2

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