[SERVER-66803] Use tenantId from targetNs to construct sourceNs in NonShardSvrProcessInterface::renameIfOptionsAndIndexesHaveNotChanged Created: 26/May/22  Updated: 29/Oct/23  Resolved: 30/Jun/22

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

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Fernando Lisboa (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-66019 Ensure tenantId not included in seria... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-06-27, Server Serverless 2022-07-11
Participants:

 Description   

NonShardSvrProcessInterface::renameIfOptionsAndIndexesHaveNotChanged takes in the target namespace as a NamespaceString, and then constructs the source namespace from a BsonObj. When constructing the source namespace, use the tenantId from the targetNs passed in - we shouldn't be renaming across tenants so the tenantId should be the same.



 Comments   
Comment by Githook User [ 29/Jun/22 ]

Author:

{'name': 'Fernando Lisboa', 'email': 'fernando.lisboa@mongodb.com', 'username': 'fernandolis10'}

Message: SERVER-66803 Use tenantId from targetNs to construct sourceNs in NonShardSvrProcessInterface::renameIfOptionsAndIndexesHaveNotChanged
Branch: master
https://github.com/mongodb/mongo/commit/78bbb640d870fae6080f0ade272fd3d60d206e64

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