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

repairDatabaseAndCheckVersion uses AutoGetCollectionForRead

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.14
    • Affects Version/s: 3.3.12
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-10

      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.

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

              Created:
              Updated:
              Resolved: