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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2021-06-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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();
                                    ^
      

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: