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

Use getInternalScopedDbConnection in all places that do "internal" operations, even if they're not using commands.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.0-rc0
    • Security, Sharding
    • None

    Description

      Not actually tried, but we should check if this works (Note that we need to add admin users in the config databases to simulate remote access in an auth environment when testing).

      Suspicious code in ConfigServer::replicaSetChange:

      scoped_ptr<ScopedDbConnection> conn( ScopedDbConnection::getScopedDbConnection(
                          configServer.getConnectionString().toString(), 30.0 ) );

      Shouldn't this be using getInternalScopedDbConnection instead?

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: