summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2020-08-25 15:29:36 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-26 01:24:33 +0000
commit8de1f41d644cabd40c19a0f8d6d2991312596961 (patch)
tree25032606eea1fb4045e39aa276a0a6fbee00b4e3 /jstests/disk
parent6b9c4ecc927df90029c3735463baacd86ba04026 (diff)
downloadmongo-8de1f41d644cabd40c19a0f8d6d2991312596961.tar.gz
SERVER-50534: Have --repair behave better in the presence of views.
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/repair_does_not_invalidate_config_on_standalone.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/disk/repair_does_not_invalidate_config_on_standalone.js b/jstests/disk/repair_does_not_invalidate_config_on_standalone.js
index aba146fb37c..3560ce53311 100644
--- a/jstests/disk/repair_does_not_invalidate_config_on_standalone.js
+++ b/jstests/disk/repair_does_not_invalidate_config_on_standalone.js
@@ -21,6 +21,8 @@ const port = mongod.port;
let testColl = mongod.getDB(dbName)[collName];
assert.commandWorked(testColl.insert({_id: 0, foo: "bar"}));
+// SERVER-50534: Also verify that running --repair with a view doesn't crash.
+assert.commandWorked(mongod.getDB(dbName).createView("viewName", collName, []));
let collUri = getUriForColl(testColl);
let collFile = dbpath + "/" + collUri + ".wt";