summaryrefslogtreecommitdiff
path: root/jstests/sharding
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2022-05-03 15:31:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-03 18:08:50 +0000
commit69c6a3d495cd845834cd83902498a14813c2daf9 (patch)
tree792b5b81f85a4fd554dbdf6ef939d0264f8f0a72 /jstests/sharding
parent73938f0e9a74b4e45b7b134473ad8e3b36322a66 (diff)
downloadmongo-69c6a3d495cd845834cd83902498a14813c2daf9.tar.gz
SERVER-65933 Enable creation of columnstore index
Adds a new feature flag which must be enabled to create one.
Diffstat (limited to 'jstests/sharding')
-rw-r--r--jstests/sharding/migration_id_index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/sharding/migration_id_index.js b/jstests/sharding/migration_id_index.js
index 35f3fb53348..3c42a3816f3 100644
--- a/jstests/sharding/migration_id_index.js
+++ b/jstests/sharding/migration_id_index.js
@@ -3,7 +3,7 @@
(function() {
"use strict";
-load("jstests/libs/get_index_helpers.js");
+load("jstests/libs/index_catalog_helpers.js");
var st = new ShardingTest({shards: 2, rs: {nodes: 2}});
var testDB = st.s.getDB("test");
@@ -20,11 +20,11 @@ assert.commandWorked(
// to finish building on the secondary before returning.
assert.commandWorked(testDB.coll.insert({a: 6}));
st.rs0.awaitReplication();
-var spec = GetIndexHelpers.findByName(
+var spec = IndexCatalogHelpers.findByName(
st.rs0.getPrimary().getDB("test").migration_id_index.getIndexes(), "_id_");
assert.neq(spec, null, "_id index spec not found");
assert.eq(spec.v, 1, tojson(spec));
-spec = GetIndexHelpers.findByName(
+spec = IndexCatalogHelpers.findByName(
st.rs0.getSecondary().getDB("test").migration_id_index.getIndexes(), "_id_");
assert.neq(spec, null, "_id index spec not found");
assert.eq(spec.v, 1, tojson(spec));
@@ -36,11 +36,11 @@ assert.commandWorked(
testDB.adminCommand({moveChunk: coll.getFullName(), find: {a: 6}, to: st.shard1.shardName}));
// Check that the collection was created with a v:1 _id index on the non-primary shard.
-spec = GetIndexHelpers.findByName(st.rs1.getPrimary().getDB("test").migration_id_index.getIndexes(),
- "_id_");
+spec = IndexCatalogHelpers.findByName(
+ st.rs1.getPrimary().getDB("test").migration_id_index.getIndexes(), "_id_");
assert.neq(spec, null, "_id index spec not found");
assert.eq(spec.v, 1, tojson(spec));
-spec = GetIndexHelpers.findByName(
+spec = IndexCatalogHelpers.findByName(
st.rs1.getSecondary().getDB("test").migration_id_index.getIndexes(), "_id_");
assert.neq(spec, null, "_id index spec not found");
assert.eq(spec.v, 1, tojson(spec));