Implement _configsvrMovePrimary

XMLWordPrintableJSON

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

      1. ScopedDistLock dbLock(dbName)
      2. If config.databases does not have an entry for the database, error
      3. If config.databases shows the target shard is already the primary, return OK
      4. Send a (new) ‘movePrimary’ command to the old primary

            Assignee:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: