summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp')
-rw-r--r--src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp b/src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp
index dc6714f9ab1..961344afd0e 100644
--- a/src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp
+++ b/src/mongo/db/timeseries/timeseries_commands_conversion_helper.cpp
@@ -103,7 +103,7 @@ CreateIndexesCommand makeTimeseriesCreateIndexesCommand(OperationContext* opCtx,
// ($gt, $lt, etc).
if (auto collatorSpec = origIndex[NewIndexSpec::kCollationFieldName]) {
uasserted(
- 5916300,
+ ErrorCodes::IndexOptionsConflict,
std::string{"On a time-series collection, partialFilterExpression and "} +
NewIndexSpec::kCollationFieldName + " arguments are incompatible"_sd);
}