Add function to DatabaseHolder to iterate existing databases matching a prefix and set their MigratingTenantAccessBlocker decorations

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Sharding
    • Sharding 2020-07-13, Sharding 2020-06-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: