summaryrefslogtreecommitdiff
path: root/src/mongo/util/duration.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-47709 add deduceChronoDuration to duration.hBilly Donahue2021-01-221-3/+47
|
* SERVER-45755 Special formatting for duration type in logv2Henrik Edin2020-01-281-0/+18
| | | | Unit suffix gets appended to attribute name when creating JSON field name.
* SERVER-44932 support logging the duration type in logv2Gabriel Russell2019-12-301-30/+49
|
* SERVER-41121 Warn when a peer certificate is about to expireSara Golemon2019-08-291-0/+5
|
* SERVER-43032 simplify overflow_arithmetic.hBilly Donahue2019-08-281-5/+5
|
* SERVER-26906 Add constexpr function to convert DurationsA. Jesse Jiryu Davis2019-05-311-10/+8
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-091-1/+1
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+17
|
* SERVER-30580 Eliminate UserException and MsgAssertionException typesMathias Stearn2017-08-161-4/+4
| | | | All users were converted to just use AssertionException.
* SERVER-22973 use mongo macros for static assertMatt Cotter2016-09-091-18/+24
|
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-2/+1
|
* SERVER-24104 sfinae duration ctor overloadsJason Carey2016-05-201-3/+5
| | | | | | | | | | | | We can't just static_assert in the duration constructors, because we need overload resolution to continue and find things like implicit conversions that then dispatch to default copy constructors. This adds standard required sfinae to those ctors. In other cases where the standard uses sfinae, it's either not needed for us (because we don't require extension of duration types and we only have integral duration reps) or appears not necessary now (several arithmetic overloads could theoretically have other targets, but for the moment I think it's unlikely that we'd expect Milliseconds{} / MySpecialNonRepType{} to actually work). We'll have to revisit sfinae in those cases if we ever do.
* SERVER-24104 Replace stdx::duration with mongo::Duration.Andy Schwerin2016-05-171-11/+38
| | | | | | | The mongo::Duration type does overflow checking on casts and arithmetic. This patch also moves DESTRUCTOR_GUARD out of assert_util.h into destructor_guard.h in order to break an include cycle with duration.h.
* SERVER-24104 Replace direct uses of stdx::chrono::durations with MongoDB ↵Andy Schwerin2016-05-171-0/+5
| | | | | | duration using decls. This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
* Introduce a replacement for std::chrono::duration without undefined behavior.Andy Schwerin2016-05-171-0/+410