[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: |
|
||||||||
| 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 |