diff options
author | Jason Chan <jason.chan@mongodb.com> | 2021-11-19 14:10:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-19 14:34:15 +0000 |
commit | 1b5fee201b23fb7c88025cebbd0f113fa2756747 (patch) | |
tree | 5442df578acdfc1a3177682dae99a7fd4ca6307c /src/mongo | |
parent | 6f6344ca057b88be27aaa07166f7559263d1b14a (diff) | |
download | mongo-1b5fee201b23fb7c88025cebbd0f113fa2756747.tar.gz |
SERVER-61610 Fix ignore dbHash mismatches for invalidated retryable FaM images
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/shell/data_consistency_checker.js | 7 |
1 files changed, 5 insertions, 2 deletions
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"]) { |