diff options
author | Misha Tyulenev <misha@mongodb.com> | 2017-07-11 12:46:24 -0400 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2017-07-11 12:47:24 -0400 |
commit | 42a1339774964f645a3991c3629aa655ffb05cf2 (patch) | |
tree | 219ff15c39190d2aa734ea0cafb4b25d41b4e648 /jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js | |
parent | 2ed5ff7d34959ebe204697ff615d24a8eabc45bf (diff) | |
download | mongo-42a1339774964f645a3991c3629aa655ffb05cf2.tar.gz |
SERVER-30038 rename $logicalTime to $clusterTime
Diffstat (limited to 'jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js')
-rw-r--r-- | jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js b/jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js index 5406dfa501e..2a3c07186a6 100644 --- a/jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js +++ b/jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js @@ -1,6 +1,6 @@ /** * Tests what values are accepted for the maxAcceptableLogicalClockDriftSecs startup parameter, and - * that servers in a sharded clusters reject logical times more than + * that servers in a sharded clusters reject cluster times more than * maxAcceptableLogicalClockDriftSecs ahead of their wall clocks. */ (function() { @@ -43,15 +43,15 @@ }); let testDB = st.s.getDB("test"); - // Contact cluster to get initial logical time. + // Contact cluster to get initial cluster time. let res = assert.commandWorked(testDB.runCommand({isMaster: 1})); - let lt = res.$logicalTime; + let lt = res.$clusterTime; - // Try to advance logical time by more than the max acceptable drift, which should fail the rate + // Try to advance cluster time by more than the max acceptable drift, which should fail the rate // limiter. let tooFarTime = Object.assign( lt, {clusterTime: new Timestamp(lt.clusterTime.getTime() + (maxDriftValue * 2), 0)}); - assert.commandFailedWithCode(testDB.runCommand({isMaster: 1, $logicalTime: tooFarTime}), + assert.commandFailedWithCode(testDB.runCommand({isMaster: 1, $clusterTime: tooFarTime}), ErrorCodes.ClusterTimeFailsRateLimiter, "expected command to not pass the rate limiter"); |