summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2016-04-11 13:03:02 -0400
committerRandolph Tan <randolph@10gen.com>2016-04-20 16:45:23 -0400
commit879d562c1fee80e84d6705efba7e47e714614505 (patch)
treed5f2e4d5ad7eab1fa1b2b0a64b7c880742379278 /src/mongo/util/time_support.h
parent0e45dbdbfda0ff381308b37d75235cad1da3db54 (diff)
downloadmongo-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.h4
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();