From 1b5fee201b23fb7c88025cebbd0f113fa2756747 Mon Sep 17 00:00:00 2001 From: Jason Chan Date: Fri, 19 Nov 2021 14:10:24 +0000 Subject: SERVER-61610 Fix ignore dbHash mismatches for invalidated retryable FaM images --- src/mongo/shell/data_consistency_checker.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mongo') diff --git a/src/mongo/shell/data_consistency_checker.js b/src/mongo/shell/data_consistency_checker.js index 185d1033058..3edfd56a663 100644 --- a/src/mongo/shell/data_consistency_checker.js +++ b/src/mongo/shell/data_consistency_checker.js @@ -212,8 +212,11 @@ var {DataConsistencyChecker} = (function() { const diff = this.getCollectionDiffUsingSessions( sourceSession, syncingSession, sourceCollInfos.dbName, collName); for (let doc of diff.docsWithDifferentContents) { - const sourceDoc = doc["first"]; - const syncingDoc = doc["second"]; + const sourceDoc = doc["sourceNode"]; + const syncingDoc = doc["syncingNode"]; + if (!sourceDoc || !syncingDoc) { + return false; + } const hasInvalidated = sourceDoc.hasOwnProperty("invalidated") && syncingDoc.hasOwnProperty("invalidated"); if (!hasInvalidated || sourceDoc["invalidated"] === syncingDoc["invalidated"]) { -- cgit v1.2.1