summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@tart.local>2016-03-22 11:50:01 -0400
committerScott Hernandez <scotthernandez@tart.local>2016-03-27 11:45:02 -0400
commitbd7ee60bcc37645eb0d0c7d4e9a76909aeb23706 (patch)
tree7190490faeb9a56a08d6e5507c9421348eb8411d /src/mongo/shell
parentec1aaf5ce52bed2897e80cbba7add95c068809dc (diff)
downloadmongo-bd7ee60bcc37645eb0d0c7d4e9a76909aeb23706.tar.gz
SERVER-23287: Cleanup replSetGetStatus output/code (field names)
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/replsettest.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index c9a232924e2..9fc699a1ca1 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -311,7 +311,7 @@ var ReplSetTest = function(opts) {
function _getLastCommittedOpTime(conn) {
var replSetStatus =
assert.commandWorked(conn.getDB("admin").runCommand({replSetGetStatus: 1}));
- return replSetStatus.OpTimes.lastCommittedOpTime || {
+ return (replSetStatus.OpTimes || replSetStatus.optimes).lastCommittedOpTime || {
ts: Timestamp(0, 0),
t: NumberLong(0)
};
@@ -326,7 +326,7 @@ var ReplSetTest = function(opts) {
function _getReadConcernMajorityOpTime(conn) {
var replSetStatus =
assert.commandWorked(conn.getDB("admin").runCommand({replSetGetStatus: 1}));
- return replSetStatus.OpTimes.readConcernMajorityOpTime || {
+ return (replSetStatus.OpTimes || replSetStatus.optimes).readConcernMajorityOpTime || {
ts: Timestamp(0, 0),
t: NumberLong(0)
};