summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorMohammad Dashti <mdashti@gmail.com>2021-04-27 15:02:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-27 15:24:38 +0000
commit86eaa89e91a6cc5c5e9251ea5aa3e10cc2ed3f67 (patch)
treecd9fc35f823741e037530e4936cb2a3b76110479 /src/mongo/db
parent63026dcec31e315648cefb79630308868d983203 (diff)
downloadmongo-86eaa89e91a6cc5c5e9251ea5aa3e10cc2ed3f67.tar.gz
SERVER-56371 Upgrade timelib to 2021.06
(cherry picked from commit 0c7ff5fc51ce3cdfd103798e38525a99590430b8)
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/query/datetime/date_time_support.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/datetime/date_time_support.cpp b/src/mongo/db/query/datetime/date_time_support.cpp
index 76002d0d87d..766c6fbbe9c 100644
--- a/src/mongo/db/query/datetime/date_time_support.cpp
+++ b/src/mongo/db/query/datetime/date_time_support.cpp
@@ -185,7 +185,8 @@ void TimeZoneDatabase::loadTimeZoneInfo(
<< timelib_get_error_message(errorCode)});
}
- invariant(errorCode == TIMELIB_ERROR_NO_ERROR);
+ invariant(errorCode == TIMELIB_ERROR_NO_ERROR ||
+ errorCode == TIMELIB_ERROR_EMPTY_POSIX_STRING);
_timeZones[entry.id] = TimeZone{tzInfo};
}
}
@@ -194,7 +195,7 @@ TimeZone TimeZoneDatabase::utcZone() {
return TimeZone{nullptr};
}
-static timelib_tzinfo* timezonedatabase_gettzinfowrapper(char* tz_id,
+static timelib_tzinfo* timezonedatabase_gettzinfowrapper(const char* tz_id,
const _timelib_tzdb* db,
int* error) {
return nullptr;