summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/collection_cloner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/collection_cloner.cpp')
-rw-r--r--src/mongo/db/repl/collection_cloner.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/repl/collection_cloner.cpp b/src/mongo/db/repl/collection_cloner.cpp
index ed2bccf8bb9..0066240cc2f 100644
--- a/src/mongo/db/repl/collection_cloner.cpp
+++ b/src/mongo/db/repl/collection_cloner.cpp
@@ -29,8 +29,6 @@
#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kReplicationInitialSync
-#include "mongo/db/index/index_descriptor_fwd.h"
-#include "mongo/db/service_context.h"
#include "mongo/platform/basic.h"
#include "mongo/base/string_data.h"
@@ -208,19 +206,8 @@ BaseCloner::AfterStageBehavior CollectionCloner::listIndexesStage() {
"source"_attr = getSource());
}
- const auto storageEngine = getGlobalServiceContext()->getStorageEngine();
// Parse the index specs into their respective state, ready or unfinished.
for (auto&& spec : indexSpecs) {
- // Sanitize storage engine options to remove options which might not apply to this node. See
- // SERVER-68122.
- if (auto storageEngineElem = spec.getField(IndexDescriptor::kStorageEngineFieldName)) {
- auto sanitizedStorageEngineOpts =
- storageEngine->getSanitizedStorageOptionsForSecondaryReplication(
- storageEngineElem.embeddedObject());
- spec = spec.addFields(
- BSON(IndexDescriptor::kStorageEngineFieldName << sanitizedStorageEngineOpts));
- }
-
if (spec.hasField("clustered")) {
invariant(_collectionOptions.clusteredIndex);
invariant(spec.getBoolField("clustered") == true);