[SERVER-57105] Rename getTimeZoneDatabase in date_time_support.cpp to amenable to force including operation_context.h Created: 20/May/21  Updated: 29/Oct/23  Resolved: 24/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Security 2021-06-14
Participants:

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



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/May/21 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-57105 Rename getTimeZoneDatabase in date_time_support.cpp to amenable to force including operation_context.h
Branch: master
https://github.com/mongodb/mongo/commit/63c4b03641e89118043829d1e1aa093f789d836c

Generated at Thu Feb 08 05:40:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.