[SERVER-49185] Add function to DatabaseHolder to iterate existing databases matching a prefix and set their MigratingTenantAccessBlocker decorations Created: 30/Jun/20  Updated: 06/Dec/22  Resolved: 21/Jul/20

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

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-49171 [optimization] Optimize access to Mig... Closed
Assigned Teams:
Sharding
Sprint: Sharding 2020-07-13, Sharding 2020-06-29
Participants:

 Description   

Add a function DatabaseHolder::updateMigratingTenantAccessBlockersForDatabasesMatching(StringData dbPrefix).

The method should check if MigratingTenantAccessBlockerByPrefix has an entry for the passed-in prefix, and if so, iterate all databases. For each database, if the database's name matches the prefix, it should set the database's MigratingTenantAccessBlocker decoration to the entry's MigratingTenantAccessBlocker.

This method is similar to DatabaseHolder::getNamesWithConflictingCasing.



 Comments   
Comment by Esha Maharishi (Inactive) [ 21/Jul/20 ]

This is only necessary if the optimization in SERVER-49171 is implemented, and can be re-opened if so.

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