repairDatabaseAndCheckVersion uses AutoGetCollectionForRead

XMLWordPrintableJSON

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

      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
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: