diff options
author | Maria van Keulen <maria@mongodb.com> | 2019-03-19 22:52:39 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2019-03-21 18:26:52 -0400 |
commit | ca3e2c1a9063b5b93547c710a93ffcc440f1b32c (patch) | |
tree | 7e88a9aefe63e8814a7d40f575d99b3de91478a3 /src/mongo/db/repl/topology_coordinator_v1_test.cpp | |
parent | 3789c3e4f1721e4ebd9cd076339a77d505051857 (diff) | |
download | mongo-ca3e2c1a9063b5b93547c710a93ffcc440f1b32c.tar.gz |
SERVER-40228 Refactor OpTimeAndWallTime into new struct
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator_v1_test.cpp')
-rw-r--r-- | src/mongo/db/repl/topology_coordinator_v1_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/repl/topology_coordinator_v1_test.cpp b/src/mongo/db/repl/topology_coordinator_v1_test.cpp index 4dc9c528404..15da15af5d8 100644 --- a/src/mongo/db/repl/topology_coordinator_v1_test.cpp +++ b/src/mongo/db/repl/topology_coordinator_v1_test.cpp @@ -117,8 +117,7 @@ protected: } void setMyOpTime(const OpTime& opTime, const Date_t wallTime = Date_t::min()) { - getTopoCoord().setMyLastAppliedOpTimeAndWallTime( - std::make_tuple(opTime, wallTime), now(), false); + getTopoCoord().setMyLastAppliedOpTimeAndWallTime({opTime, wallTime}, now(), false); } void topoCoordSetMyLastAppliedOpTime(const OpTime& opTime, @@ -126,7 +125,7 @@ protected: bool isRollbackAllowed, const Date_t wallTime = Date_t::min()) { getTopoCoord().setMyLastAppliedOpTimeAndWallTime( - std::make_tuple(opTime, wallTime), now, isRollbackAllowed); + {opTime, wallTime}, now, isRollbackAllowed); } void topoCoordSetMyLastDurableOpTime(const OpTime& opTime, @@ -134,7 +133,7 @@ protected: bool isRollbackAllowed, const Date_t wallTime = Date_t::min()) { getTopoCoord().setMyLastDurableOpTimeAndWallTime( - std::make_tuple(opTime, wallTime), now, isRollbackAllowed); + {opTime, wallTime}, now, isRollbackAllowed); } void setSelfMemberState(const MemberState& newState) { |