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

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

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