diff options
author | Mihai Andrei <mihai.andrei@10gen.com> | 2020-11-05 21:32:26 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-11 23:00:49 +0000 |
commit | 9f2dbad788d016c379c52c6e7323356aae52e6e0 (patch) | |
tree | fb7885c1f6493ddd1869f7f4ccf06a87e1775c1a /src/mongo/dbtests/clienttests.cpp | |
parent | cba2cfc0e778ffd1c21e6d03976c2aee21a059b1 (diff) | |
download | mongo-9f2dbad788d016c379c52c6e7323356aae52e6e0.tar.gz |
SERVER-47081 Disallow creation of haystack indexes and verify that haystack indexes are maintained in mixed version clusters
Diffstat (limited to 'src/mongo/dbtests/clienttests.cpp')
-rw-r--r-- | src/mongo/dbtests/clienttests.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp index e847a3b2fad..9cb2f1592aa 100644 --- a/src/mongo/dbtests/clienttests.cpp +++ b/src/mongo/dbtests/clienttests.cpp @@ -335,22 +335,6 @@ public: } }; -class CreateHaystackIndex : public Base { -public: - CreateHaystackIndex() : Base("CreateHaystackIndex") {} - void run() { - const ServiceContext::UniqueOperationContext opCtxPtr = cc().makeOperationContext(); - OperationContext& opCtx = *opCtxPtr; - DBDirectClient db(&opCtx); - - db.createIndex(ns(), - IndexSpec() - .addKey("aField", IndexSpec::kIndexTypeGeoHaystack) - .addKey("otherField", IndexSpec::kIndexTypeDescending) - .geoHaystackBucketSize(1.0)); - } -}; - class Create2DSphereIndex : public Base { public: Create2DSphereIndex() : Base("Create2DSphereIndex") {} @@ -409,7 +393,6 @@ public: add<CreateUniqueSparseDropDupsIndexInBackground>(); add<CreateComplexTextIndex>(); add<Create2DIndex>(); - add<CreateHaystackIndex>(); add<Create2DSphereIndex>(); add<CreateHashedIndex>(); add<CreateIndexFailure>(); |