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

DatabaseNameUtil::parseTenantIdFromDatabaseName() should be moved to tenant migration util file.

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Serverless

      DatabaseNameUtil::parseTenantIdFromDatabaseName() tries to parse tenantID when gMultitenancySupport is disabled which is not very safe. We introduced that function for tenant migration as we night need to parse the tenantID even when gMultitenancySupport is disabled. In future, if parseTenantIdFromDatabaseName() is called outside of tenant migration code, we can cause bugs due to parsing tenantId w/ gMultitenancySupport disabled. To prevent this, we should move that function to tenant migration util file.

            Assignee:
            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: