[SERVER-40971] Fix the check of _resolvedNss in AutoGetCollection Created: 02/May/19  Updated: 29/Oct/23  Resolved: 06/May/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-39520 Only use collection MODE_X locks for ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-05-06
Participants:
Linked BF Score: 17

 Description   

We resolve the namespace again after locking the namespace in AutoGetCollection, and we have a while loop to keep checking until they are the same. However, we didn't assign the newly resolved namespace to _resolvedNss so the comparison is always between newly resolved one and the originally resolved one (rather than last resolved one).



 Comments   
Comment by Githook User [ 06/May/19 ]

Author:

{'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao', 'username': 'xy24'}

Message: SERVER-40971 Fix the check of _resolvedNss in AutoGetCollection
Branch: master
https://github.com/mongodb/mongo/commit/3de146355bbc9612be7ff76937469f2bb5144712

Generated at Thu Feb 08 04:56:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.