diff options
Diffstat (limited to 'src/mongo/db/storage/durable_catalog_impl.cpp')
-rw-r--r-- | src/mongo/db/storage/durable_catalog_impl.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/storage/durable_catalog_impl.cpp b/src/mongo/db/storage/durable_catalog_impl.cpp index c8b849206c1..a7e8b3f5fb1 100644 --- a/src/mongo/db/storage/durable_catalog_impl.cpp +++ b/src/mongo/db/storage/durable_catalog_impl.cpp @@ -36,7 +36,6 @@ #include "mongo/bson/util/bson_extract.h" #include "mongo/bson/util/builder.h" -#include "mongo/db/catalog/disable_index_spec_namespace_generation_gen.h" #include "mongo/db/concurrency/d_concurrency.h" #include "mongo/db/index/index_descriptor.h" #include "mongo/db/namespace_string.h" @@ -1205,12 +1204,6 @@ BSONObj DurableCatalogImpl::getIndexSpec(OperationContext* opCtx, invariant(offset >= 0); BSONObj spec = md.indexes[offset].spec.getOwned(); - if (spec.hasField("ns") || disableIndexSpecNamespaceGeneration.load()) { - return spec; - } - - BSONObj nsObj = BSON("ns" << ns.ns()); - spec = spec.addField(nsObj.firstElement()); return spec; } |