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

WriteConcernOptions timeout constants can be used before they are initialized

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.1.8
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Sharding 2019-02-11

    Description

      The timeout constants defined under WriteConcernOptions can be used before they are initialized in places where we construct static WriteConcernOptions constants, such as here.

      Because of this, these usages get the zero-initialized value and can lead to unexpected errors.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: