diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2018-06-12 11:29:41 -0400 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2018-06-12 13:58:14 -0400 |
commit | a6cc895fa631e29e8c7ee6ec61a6b7a21a370bf3 (patch) | |
tree | 25a6d1506c113ad3e13bb36f4f60ae7e2f465afc /jstests | |
parent | 85d4c70b894b3f2ebc19115a573bf01b27ac89e1 (diff) | |
download | mongo-a6cc895fa631e29e8c7ee6ec61a6b7a21a370bf3.tar.gz |
SERVER-35351: Have implicit creation of `system.views` in a separate WUOW.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/views/views_creation.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/core/views/views_creation.js b/jstests/core/views/views_creation.js index c4d73ceb790..18213a6e352 100644 --- a/jstests/core/views/views_creation.js +++ b/jstests/core/views/views_creation.js @@ -15,9 +15,10 @@ assert.eq(0, collNames.length, tojson(collNames)); // You cannot create a view that starts with 'system.'. - assert.commandFailedWithCode(viewsDB.runCommand({create: "system.views", viewOn: "collection"}), - ErrorCodes.InvalidNamespace, - "Created an illegal view named 'system.views'"); + assert.commandFailedWithCode( + viewsDB.runCommand({create: "system.special", viewOn: "collection"}), + ErrorCodes.InvalidNamespace, + "Created an illegal view named 'system.views'"); // We don't run this check on MMAPv1 as it automatically creates a system.indexes collection // when creating a database, which causes this command to fail with NamespaceAlreadyExists. |