Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49185

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Sharding
    • Sharding 2020-07-13, Sharding 2020-06-29

    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.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: