summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-09-12 14:16:36 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2016-09-12 14:16:36 -0400
commit3f55805234bd7a2db6440c9e7799bbddbd816557 (patch)
tree4bbfd55d3721a3d7fd1248dbb7f800554e342837
parentebf591b0718cff88680e7bda9abfdb31e1bcbd78 (diff)
downloadmongo-3f55805234bd7a2db6440c9e7799bbddbd816557.tar.gz
SERVER-26041 Use bsonBinaryEqual in checkDBHashes
-rw-r--r--jstests/hooks/check_repl_dbhash.js4
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);