summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index 6fe6de34381..03f8ec87e30 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -407,10 +407,6 @@ public:
return appendCommandStatus(result, resolvedView.getStatus());
}
- auto collationSpec = ctx.getView()->defaultCollator()
- ? ctx.getView()->defaultCollator()->getSpec().toBSON().getOwned()
- : CollationSpec::kSimpleSpec;
-
// With the view & collation resolved, we can relinquish locks.
ctx.releaseLocksForView();
@@ -424,7 +420,6 @@ public:
if (!newRequest.isOK()) {
return appendCommandStatus(result, newRequest.getStatus());
}
- newRequest.getValue().setCollation(collationSpec);
bool status = runParsed(
txn, origNss, newRequest.getValue(), newCmd.getValue(), errmsg, result);