summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2015-12-10 14:49:45 -0500
committerRandolph Tan <randolph@10gen.com>2015-12-10 16:10:19 -0500
commite25bc60bbf7b7373f66be03d5c82c6197d66e83e (patch)
tree10a10615dc981bc9af0ad393b7de5b213f07d9b3
parent0511dffda040fdecd6c7a71835b59427670ff0c0 (diff)
downloadmongo-e25bc60bbf7b7373f66be03d5c82c6197d66e83e.tar.gz
SERVER-21849 Fix timestamp compare in min_optime_recovery.js
(cherry picked from commit ea6764dbe4a5131a9ad7694781d15a2d49af9b3e)
-rw-r--r--jstests/sharding/min_optime_recovery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/min_optime_recovery.js b/jstests/sharding/min_optime_recovery.js
index 6837764493f..9da6f165362 100644
--- a/jstests/sharding/min_optime_recovery.js
+++ b/jstests/sharding/min_optime_recovery.js
@@ -66,7 +66,7 @@ var runTest = function(withRecovery) {
var configOpTimeObj = shardingSection.lastSeenConfigServerOpTime;
assert.neq(null, configOpTimeObj);
- assert.gte(configOpTimeObj.ts, opTimeBeforeMigrate.ts);
+ assert.gte(configOpTimeObj.ts.getTime(), opTimeBeforeMigrate.ts.getTime());
assert.gte(configOpTimeObj.t, opTimeBeforeMigrate.t);
}
else {