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

Change call sites of `DatabaseName::db()` in shard code to use other proper functions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Server Serverless 2023-06-26
    • 1

      As we are making the `DatabaseName::db()` private, all the call sites of it should be changed to replace it with a proper function.

      • For serialization nss/db cases: Before we start to support shard in serverless, there is no tenant in shard. So, we decided to call `DatabaseNameUtil::serialize` function to serialize the DatabaseName object to string. 
      • For check empty db, call `.isEmpty()`
      • For create opmsgrequest, call `create` with DatabaseName object.

       

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: