summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2022-05-10 11:46:49 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-11 00:48:08 +0000
commit4baba7c9f11c34de6a4d823e7c7fc3f71352a394 (patch)
treee29b3e79e6028e60c2e06d7325fbc9f38dca55f7 /src
parente22aedb467254e680b705f04642e8770264af42d (diff)
downloadmongo-4baba7c9f11c34de6a4d823e7c7fc3f71352a394.tar.gz
SERVER-66085 Evaluate creating state collections as clustered collections
Diffstat (limited to 'src')
-rw-r--r--src/mongo/shell/db.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index ed32ff4172c..d3800871af1 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -1829,9 +1829,12 @@ DB.prototype.createEncryptedCollection = function(name, opts) {
assert.commandWorked(this.getCollection(name).createIndex({__safeContent__: 1}));
- assert.commandWorked(this.createCollection(ef.escCollection));
- assert.commandWorked(this.createCollection(ef.eccCollection));
- assert.commandWorked(this.createCollection(ef.ecocCollection));
+ assert.commandWorked(
+ this.createCollection(ef.escCollection, {clusteredIndex: {key: {_id: 1}, unique: true}}));
+ assert.commandWorked(
+ this.createCollection(ef.eccCollection, {clusteredIndex: {key: {_id: 1}, unique: true}}));
+ assert.commandWorked(
+ this.createCollection(ef.ecocCollection, {clusteredIndex: {key: {_id: 1}, unique: true}}));
return res;
};