summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/querytests.cpp
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2017-02-08 14:18:29 -0500
committerMisha Tyulenev <misha@mongodb.com>2017-02-08 15:51:51 -0500
commit437352cd7dbc158343e2929888d265928b6ca8b7 (patch)
tree5ba458038de0aa6c1616f0322dd6289cc527b6ad /src/mongo/dbtests/querytests.cpp
parent24c073e764e6d0ee199c1748be19898f798aeb15 (diff)
downloadmongo-437352cd7dbc158343e2929888d265928b6ca8b7.tar.gz
SERVER-27828: Pass ServiceContext to oplog and ReplicationCoordinator methods that will use LogicalClock
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r--src/mongo/dbtests/querytests.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp
index b051620f0fa..1ca8cf49bf0 100644
--- a/src/mongo/dbtests/querytests.cpp
+++ b/src/mongo/dbtests/querytests.cpp
@@ -670,9 +670,12 @@ public:
<< 8192),
info);
- Date_t one = Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp().asLL());
- Date_t two = Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp().asLL());
- Date_t three = Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp().asLL());
+ Date_t one =
+ Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp(_txn.getServiceContext()).asLL());
+ Date_t two =
+ Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp(_txn.getServiceContext()).asLL());
+ Date_t three =
+ Date_t::fromMillisSinceEpoch(getNextGlobalTimestamp(_txn.getServiceContext()).asLL());
insert(ns, BSON("ts" << one));
insert(ns, BSON("ts" << two));
insert(ns, BSON("ts" << three));