diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-12-06 17:58:28 -0500 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-12-07 17:42:53 -0500 |
commit | d899a205ef66d916b071dd42fbb619775561a523 (patch) | |
tree | 25ef3f9436d3b61911b7d3f6da4c80a5364541a4 /src/mongo/db/s/collection_range_deleter.cpp | |
parent | 8c3877860e988ec43616749e5995027266647922 (diff) | |
download | mongo-d899a205ef66d916b071dd42fbb619775561a523.tar.gz |
SERVER-38445 Fix Date_t addition with Duration
Diffstat (limited to 'src/mongo/db/s/collection_range_deleter.cpp')
-rw-r--r-- | src/mongo/db/s/collection_range_deleter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/collection_range_deleter.cpp b/src/mongo/db/s/collection_range_deleter.cpp index 4987c7014fd..b3d1ad0f3d6 100644 --- a/src/mongo/db/s/collection_range_deleter.cpp +++ b/src/mongo/db/s/collection_range_deleter.cpp @@ -306,7 +306,7 @@ boost::optional<Date_t> CollectionRangeDeleter::cleanUpNextRange( << redact(self->_orphans.front().range.toString()) << " next."; } - return Date_t::now() + stdx::chrono::milliseconds{rangeDeleterBatchDelayMS.load()}; + return Date_t::now() + Milliseconds(rangeDeleterBatchDelayMS.load()); } invariant(range); @@ -314,7 +314,7 @@ boost::optional<Date_t> CollectionRangeDeleter::cleanUpNextRange( invariant(wrote.getValue() > 0); notification.abandon(); - return Date_t::now() + stdx::chrono::milliseconds{rangeDeleterBatchDelayMS.load()}; + return Date_t::now() + Milliseconds(rangeDeleterBatchDelayMS.load()); } StatusWith<int> CollectionRangeDeleter::_doDeletion(OperationContext* opCtx, |