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

Move rename precondition checks away from generic utility API

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • CAR Team 2024-01-22

      The validation of the rename preconditions on the from/to namespaces is implemented by checkRenamePreconditions and checkDbPrimariesOnTheSameShard, which are functions exposed by a generic utility API.

      Since these functions are based on some assumptions (e.g., DDL lock, the shard is the primary of source database, etc.) the goal is to move all or some of them into the coordinator of the rename command.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: