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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Serverless

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: