diff options
author | Randolph Tan <randolph@10gen.com> | 2016-04-11 13:03:02 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-04-20 16:45:23 -0400 |
commit | 879d562c1fee80e84d6705efba7e47e714614505 (patch) | |
tree | d5f2e4d5ad7eab1fa1b2b0a64b7c880742379278 /src/mongo/util/time_support.h | |
parent | 0e45dbdbfda0ff381308b37d75235cad1da3db54 (diff) | |
download | mongo-879d562c1fee80e84d6705efba7e47e714614505.tar.gz |
SERVER-22647 opObserver on shard mongod to initialize sharding state on insert to admin.system.version
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r-- | src/mongo/util/time_support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h index ca9fa2162f5..6f20025d832 100644 --- a/src/mongo/util/time_support.h +++ b/src/mongo/util/time_support.h @@ -181,6 +181,8 @@ public: /* * Returns a system clock time_point representing the same point in time as this Date_t. + * Warning: careful when using with Date_t::max() as it can have a value that is bigger than + * time_point can store. */ stdx::chrono::system_clock::time_point toSystemTimePoint() const; @@ -195,6 +197,8 @@ public: /** * Implicit conversion operator to system clock time point. Enables use of Date_t with * condition_variable::wait_until. + * Warning: careful when using with Date_t::max() as it can have a value that is bigger than + * time_point can store. */ operator stdx::chrono::system_clock::time_point() const { return toSystemTimePoint(); |