diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-09-12 14:16:36 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-09-12 14:16:36 -0400 |
commit | 3f55805234bd7a2db6440c9e7799bbddbd816557 (patch) | |
tree | 4bbfd55d3721a3d7fd1248dbb7f800554e342837 | |
parent | ebf591b0718cff88680e7bda9abfdb31e1bcbd78 (diff) | |
download | mongo-3f55805234bd7a2db6440c9e7799bbddbd816557.tar.gz |
SERVER-26041 Use bsonBinaryEqual in checkDBHashes
-rw-r--r-- | jstests/hooks/check_repl_dbhash.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/hooks/check_repl_dbhash.js b/jstests/hooks/check_repl_dbhash.js index 23a1cfab8e9..d8425efa98b 100644 --- a/jstests/hooks/check_repl_dbhash.js +++ b/jstests/hooks/check_repl_dbhash.js @@ -51,7 +51,7 @@ function checkDBHashes(rst, dbBlacklist = [], phase = 'after test hook') { missingOnSecondary.push(tojsononeline(primaryDoc)); primaryIndex--; } else { - if (bsonWoCompare(primaryDoc, secondaryDoc) !== 0) { + if (!bsonBinaryEqual(primaryDoc, secondaryDoc)) { print('Mismatching documents:'); print(' primary: ' + tojsononeline(primaryDoc)); print(' secondary: ' + tojsononeline(secondaryDoc)); @@ -156,7 +156,7 @@ function checkDBHashes(rst, dbBlacklist = [], phase = 'after test hook') { secondaryCollInfo.forEach(secondaryInfo => { primaryCollInfo.forEach(primaryInfo => { if (secondaryInfo.name === primaryInfo.name) { - if (bsonWoCompare(secondaryInfo, primaryInfo) !== 0) { + if (!bsonBinaryEqual(secondaryInfo, primaryInfo)) { print(phase + ', the primary and secondary have different attributes for ' + 'the collection ' + dbName + '.' + secondaryInfo.name); |