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

repairDatabaseAndCheckVersion uses AutoGetCollectionForRead

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.3.14
    • 3.3.12
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-10

    Description

      The repairDatabaseAndCheckVersion call, which runs at server startup is using AutoGetCollectionForRead, which performs sharding and replication snapshot checks. Doing this when the server is starting, while possibly not harmful is not correct.

      AutoGetCollection should be sufficient to use given that the global lock is already held in MODE_X.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: