diff options
author | James Wahlin <james@mongodb.com> | 2018-10-01 16:05:08 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-10-02 09:56:37 -0400 |
commit | f7ddb89c8caf438781de9191d690d03f711b63fe (patch) | |
tree | 9244266869d8c17de23d5e0c817a2fddc2bc849a /src/mongo/dbtests/validate_tests.cpp | |
parent | 5a6ee566f608c46654133de17a4e8bb3464d680d (diff) | |
download | mongo-f7ddb89c8caf438781de9191d690d03f711b63fe.tar.gz |
SERVER-37188 Rename "All Paths" index to "Wildcard" index
Diffstat (limited to 'src/mongo/dbtests/validate_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/validate_tests.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp index 8791185e1ba..5cc747e128f 100644 --- a/src/mongo/dbtests/validate_tests.cpp +++ b/src/mongo/dbtests/validate_tests.cpp @@ -66,7 +66,7 @@ public: _db(nullptr) { _client.createCollection(_ns); { - _origAllPathsKnob = internalQueryAllowAllPathsIndexes.load(); + _origWildcardKnob = internalQueryAllowAllPathsIndexes.load(); internalQueryAllowAllPathsIndexes.store(true); AutoGetCollection autoGetCollection(&_opCtx, _nss, MODE_X); @@ -78,7 +78,7 @@ public: ~ValidateBase() { _client.dropCollection(_ns); getGlobalServiceContext()->unsetKillAllOperations(); - internalQueryAllowAllPathsIndexes.store(_origAllPathsKnob); + internalQueryAllowAllPathsIndexes.store(_origWildcardKnob); } protected: @@ -140,7 +140,7 @@ protected: unique_ptr<AutoGetDb> _autoDb; Database* _db; bool _isInRecordIdOrder; - bool _origAllPathsKnob{false}; + bool _origWildcardKnob{false}; }; template <bool full, bool background> @@ -1019,7 +1019,7 @@ public: // Insert additional multikey path metadata index keys. lockDb(MODE_X); - const RecordId recordId(RecordId::ReservedId::kAllPathsMultikeyMetadataId); + const RecordId recordId(RecordId::ReservedId::kWildcardMultikeyMetadataId); IndexCatalog* indexCatalog = coll->getIndexCatalog(); IndexDescriptor* descriptor = indexCatalog->findIndexByName(&_opCtx, indexName); auto sortedDataInterface = @@ -1139,7 +1139,7 @@ public: WriteUnitOfWork wunit(&_opCtx); const BSONObj indexKey = BSON("" << 1 << "" << "a"); - RecordId recordId(RecordId::ReservedId::kAllPathsMultikeyMetadataId); + RecordId recordId(RecordId::ReservedId::kWildcardMultikeyMetadataId); sortedDataInterface->unindex(&_opCtx, indexKey, recordId, true /* dupsAllowed */); wunit.commit(); } |