summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2021-11-19 14:10:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-19 14:34:15 +0000
commit1b5fee201b23fb7c88025cebbd0f113fa2756747 (patch)
tree5442df578acdfc1a3177682dae99a7fd4ca6307c /src/mongo
parent6f6344ca057b88be27aaa07166f7559263d1b14a (diff)
downloadmongo-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.js7
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"]) {