summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2022-10-18 17:18:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-18 17:59:27 +0000
commit37c5b66cb2ad82144eb2c0dc85195149e39a42e1 (patch)
tree92b7d0dd6427702d13a97a7df205b91eff12b76c /jstests/replsets
parenta505d3e21e350ab461e61db4378622789a7ba32e (diff)
downloadmongo-37c5b66cb2ad82144eb2c0dc85195149e39a42e1.tar.gz
SERVER-69436: dbhash_lock_acquisition.js should tolerate not holding the collection lock
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/dbhash_lock_acquisition.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/dbhash_lock_acquisition.js b/jstests/replsets/dbhash_lock_acquisition.js
index bb4a73b11b0..d069b368995 100644
--- a/jstests/replsets/dbhash_lock_acquisition.js
+++ b/jstests/replsets/dbhash_lock_acquisition.js
@@ -82,7 +82,7 @@ threadDBHash.start();
assert.soon(() => {
const ops = db.currentOp({"command.dbHash": 1, waitingForLock: true}).inprog;
- if (ops.length === 0) {
+ if (ops.length === 0 || !ops[0].locks.hasOwnProperty("Collection")) {
return false;
}
assert.eq(ops[0].locks, {