summaryrefslogtreecommitdiff
path: root/src/mongo/db/views/view_catalog_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/views/view_catalog_helpers.cpp')
-rw-r--r--src/mongo/db/views/view_catalog_helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/views/view_catalog_helpers.cpp b/src/mongo/db/views/view_catalog_helpers.cpp
index 018fad8437d..b5567da87ca 100644
--- a/src/mongo/db/views/view_catalog_helpers.cpp
+++ b/src/mongo/db/views/view_catalog_helpers.cpp
@@ -171,7 +171,7 @@ StatusWith<ResolvedView> resolveView(OperationContext* opCtx,
return StatusWith<ResolvedView>(
{*resolvedNss,
std::move(resolvedPipeline),
- collation ? std::move(collation.get()) : CollationSpec::kSimpleSpec,
+ collation ? std::move(collation.value()) : CollationSpec::kSimpleSpec,
tsOptions,
mixedData});
}
@@ -216,7 +216,7 @@ StatusWith<ResolvedView> resolveView(OperationContext* opCtx,
curOp->debug().addResolvedViews(dependencyChain, resolvedPipeline);
return StatusWith<ResolvedView>(
- {*resolvedNss, std::move(resolvedPipeline), std::move(collation.get())});
+ {*resolvedNss, std::move(resolvedPipeline), std::move(collation.value())});
}
}