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

Rename getTimeZoneDatabase in date_time_support.cpp to amenable to force including operation_context.h

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2021-06-14

    Description

      There is a function named getTimeZoneDatabase in date_time_support.cpp and in operation_context.h

      If operation_context.h is force included into date_time_support.cpp, this will cause an error with MSVC.

      src\mongo\db\query\datetime\date_time_support.cpp(137,31): error C2872: 'getTimeZoneDatabase': ambiguous symbol
          return getTimeZoneDatabase(serviceContext).get();
                                    ^
      

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: