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

Make new database creation set the database's MigratingTenantAccessBlocker to the corresponding one in MigratingTenantAccessBlockerByPrefix

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

      Modify theĀ DatabaseHolder::openDb method to check if the new database's name matches any prefix in MigratingTenantAccessBlockerByPrefix (by calling MigratingTenantAccessBlockerByPrefix::get with the database's name), and if so, set the new Database's shared_ptr<MigratingTenantAccessBlocker> decoration to the returned shared_ptr<MigratingTenantAccessBlocker>.

      Note that there is no durable concept of a database. A database is created by being "opened", and durable state for it is only created when a collection in it is created.

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

              Created:
              Updated:
              Resolved: