diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2019-04-26 14:14:55 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2019-04-26 16:43:17 -0400 |
commit | 6a71c575a907af7af297f94401aea727ab28bd43 (patch) | |
tree | 6ba71b32d4480965893166924d7cf7a81dc3b852 | |
parent | fa50ad74b62470f8fc4f78e588201ae428ce8dc3 (diff) | |
download | mongo-6a71c575a907af7af297f94401aea727ab28bd43.tar.gz |
SERVER-40855 run_check_repl_dbhash_background.js with majority read concern false must allow for a missing majority op time
-rw-r--r-- | jstests/hooks/run_check_repl_dbhash_background.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/hooks/run_check_repl_dbhash_background.js b/jstests/hooks/run_check_repl_dbhash_background.js index 8cc3ddc3e40..0ad6f4099a2 100644 --- a/jstests/hooks/run_check_repl_dbhash_background.js +++ b/jstests/hooks/run_check_repl_dbhash_background.js @@ -177,6 +177,8 @@ // 'clusterTime'. const readConcernMajorityOpTime = rsStatus.optimes.readConcernMajorityOpTime; + if (typeof rsStatus.optimes.readConcernMajorityOpTime === 'undefined') + return false; if (bsonWoCompare(readConcernMajorityOpTime.ts, clusterTime) >= 0) { debugInfo.push({ "node": db.getMongo(), |