summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-18590 Implement lock & unlock for replSets distlock managerRandolph Tan2015-06-051-0/+1
|
* SERVER-13874 Support converting Date_t to system_clock::time_point and back.Andy Schwerin2015-05-151-3/+19
|
* SERVER-13874 Add comments to Date_t class definition and method declarations.Andy Schwerin2015-05-141-2/+68
| | | | Also, fix spelling of "isFormattable".
* SERVER-13874 Get rid of some dead code in time_support.h/cppAndy Schwerin2015-05-141-11/+1
| | | | | | A little dead or near-dead code elimination, and improve how Date_t::toString() works. Specifically, it no longer crashes when "now" is before the posix epoch, and it prints ISO8601 dates instead of "c time".
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-131-9/+110
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* Revert "SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-95/+9
| | | | | | | | stdx::chrono types." This reverts commit 9aac625685811873ffbc2d3e8d09531eff1ce10e. Committed in error.
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-9/+95
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* SERVER-17736 Remove obsolete C++ driver symbol export miscellaneaAndrew Morrow2015-03-261-4/+3
|
* SERVER-16940 Change pass-by-const-ref of StringData to pass-by-valueTyler Brock2015-02-061-1/+1
|
* Revert "Don't check the time more than needed when locking"Eric Milkie2014-11-111-1/+0
| | | | This reverts commit 7e2937e75e84c8cb27a22488a202cf4411977c6a.
* Don't check the time more than needed when lockingMathias Stearn2014-11-101-0/+1
|
* SERVER-14938 Remove string streaming operators from OpTime and Date_tSpencer T Brody2014-08-191-2/+0
|
* SERVER-14938 Move replSetGetStatus unit test from a repl coordinator to a ↵Spencer T Brody2014-08-181-0/+2
| | | | topology coordinator test
* Revert "SERVER-14448 Move replSetGetStatus unit test from a repl coordinator ↵mike o'brien2014-08-151-2/+0
| | | | | | to a topology coordinator test" This reverts commit 95e93e471d6a7852e4daa41214501474d4bd4866.
* SERVER-14448 Move replSetGetStatus unit test from a repl coordinator to a ↵Spencer T Brody2014-08-151-0/+2
| | | | topology coordinator test
* SERVER-14436 Introduce Milliseconds and Seconds types in time_support.hAndy Schwerin2014-07-081-0/+4
|
* SERVER-13760 Do not call dateToISOString if date is not formatableShaun Verch2014-05-231-0/+1
|
* Revert "SERVER-13760 Do not call dateToISOString if date is not formatable"Shaun Verch2014-05-211-2/+0
| | | | This reverts commit 3b97c0870427f676cf3ffbddabc5df8b1fa44fa5.
* SERVER-13760 Do not call dateToISOString if date is not formatableShaun Verch2014-05-211-0/+2
|
* SERVER-13256: Remove pch - qualify std in headersMark Benvenuto2014-05-191-1/+1
|
* Revert "SERVER-13760 Do not call dateToISOString if date is not formatable"Andy Schwerin2014-05-161-2/+0
| | | | This reverts commit bf5f075b3b73c242042be8fd2c0b9b60af5f0089, which broke the build.
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-161-9/+21
| | | | Also update generators.
* SERVER-13760 Do not call dateToISOString if date is not formatableShaun Verch2014-05-161-0/+2
|
* SERVER-5553 Remove a heap allocation from the log event encoder.Andy Schwerin2014-04-031-0/+16
| | | | | | The goal is to eventually have a logging path that is truly safe to use in a signal handler. This patch advances the cause by removing the heap allocation caused by returning a string in the date formatters.
* SERVER-3364 Label rest of client api with MONGO_CLIENT_APIRanjay Krishna2013-12-281-3/+4
| | | | | | build all the sharedclient programs using the new macro MONGO_CLIENT_API in mongo/client/export_macros.h Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
* SERVER-11814 fix include path fixEliot Horowitz2013-12-241-1/+1
|
* SERVER-11814 Add function to parse ISO Date to time utilsShaun Verch2013-12-241-0/+12
|
* SERVER-11203 Reverting changes to time support code to work with negative time_tShaun Verch2013-10-211-12/+0
| | | | | | | | | | | | | | | | | | | Doing this correctly depends on SERVER-11273 Revert "SERVER-11174 Reference db of tool test rather than global db object" This reverts commit d1c2ae72c4829ed77cb6b7fe42e486910483caff. Revert "SERVER-11174 Skip tests of negative dates on windows" This reverts commit 9fcdfeb195c42e91a49e37212a65fea624d71c13. Revert "SERVER-11174 Skip test for date that cannot be stored on 32 bit systems" This reverts commit fc3b552e788e027af40523173790a20f49b27ec5. Revert "SERVER-6058 Fix time_support_test on systems with small time_t" This reverts commit c1a09966ff05c42c184870715e7a7383d02c477d. Revert "SERVER-6058 Factor out date to UTC handling code and use in mongoexport" This reverts commit 0b19be208f91e70c683d60c22011cad14a9fa78c.
* SERVER-6058 Factor out date to UTC handling code and use in mongoexportShaun Verch2013-10-111-0/+12
|
* SERVER-10202 added testing-only function getNextSleepMillis(). stabilized ↵Benety Goh2013-10-101-0/+6
| | | | BasicTests::SleepBackoffTest under Windows 32-bit
* SERVER-8684 make codebase compatible with boost 1.5 and newermatt dannenberg2013-08-071-0/+1
|
* SERVER-7965 Move date/time types and functions from bson/util/misc.h to ↵Andy Schwerin2013-07-241-2/+17
| | | | util/time_support.{h,cpp}.
* SERVER-7965 Introduce time formatting functions for ISO 8601 and Ctime; ↵Andy Schwerin2013-07-241-9/+28
| | | | eliminate curTimeString().
* SERVER-10084 New logging implementation.Andy Schwerin2013-07-091-2/+2
| | | | | | | | | | | | | | | | This change-set: * Introduces a new top-level directory, mongo/logger, containing most of the implementation of logging functionality formerly found in log.cpp/log.h. * Cleans up existing, unusual uses of the logging system that were not trivially compatible with the new implementation. * Replaces Logstream/Nulstream with a LogstreamBuilder object, whose destructor writes log messages. This new LogstreamBuilder is reentrant, unlike the old logging code, which was thread-safe but not reentrant. Additionally, std::endl is no longer required to terminate a log line. When a LogstreamBuilder goes out of scope, the log message gets committed. * Separates the log system into several components: a global LogManager, several LogDomains, various kinds of Appenders (e.g., SyslogAppender) and Encoders (for formatting messages). * Allows unit tests to capture and examine log output. This patch does _not_ introduce support for hierarchical log domains, or for enabling and disabling specific log domains when the server is running in a multi-threaded mode. This is future work.
* modest ( ~ !10% ) compile time speedup by some small header cleanupEliot Horowitz2013-06-231-1/+1
|
* SERVER-6295 make time in log have millisecond precisionRandolph Tan2012-10-311-0/+10
|
* SERVER-6282 wait-doubling backoff for local mongos errors requiring config ↵Greg Studer2012-07-301-0/+23
| | | | server access
* SERVER-6449 - decide which BOSOT::TIME_UTC variant to use at compile timeEliot Horowitz2012-07-141-0/+7
|
* Split mongo/util/time_support.h into a header and a cpp file.Andy Schwerin2012-05-101-212/+17
|
* fixing windows compile, trying to make it easierEliot Horowitz2012-04-191-3/+1
|
* try to fix windows compileEliot Horowitz2012-04-191-0/+4
|
* make some headers include what they needEliot Horowitz2012-04-191-2/+6
|
* don't use macros to protect localtime, etc... redefine in mongodEliot Horowitz2012-04-061-9/+7
| | | | trying to fix windows compile
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-5/+3
|
* fix Solaris buildEric Milkie2011-12-281-0/+1
|
* fix compiling (Windows)Eric Milkie2011-12-281-0/+2
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+255