summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/parsed_distinct_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/parsed_distinct_test.cpp')
-rw-r--r--src/mongo/db/query/parsed_distinct_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/query/parsed_distinct_test.cpp b/src/mongo/db/query/parsed_distinct_test.cpp
index f543a13b95a..d53457e500e 100644
--- a/src/mongo/db/query/parsed_distinct_test.cpp
+++ b/src/mongo/db/query/parsed_distinct_test.cpp
@@ -46,9 +46,9 @@ static const bool isExplain = true;
TEST(ParsedDistinctTest, ConvertToAggregationNoQuery) {
QueryTestServiceContext serviceContext;
auto uniqueTxn = serviceContext.makeOperationContext();
- OperationContext* txn = uniqueTxn.get();
+ OperationContext* opCtx = uniqueTxn.get();
- auto pd = ParsedDistinct::parse(txn,
+ auto pd = ParsedDistinct::parse(opCtx,
testns,
fromjson("{distinct: 'testcoll', key: 'x'}"),
ExtensionsCallbackDisallowExtensions(),
@@ -82,9 +82,9 @@ TEST(ParsedDistinctTest, ConvertToAggregationNoQuery) {
TEST(ParsedDistinctTest, ConvertToAggregationWithQuery) {
QueryTestServiceContext serviceContext;
auto uniqueTxn = serviceContext.makeOperationContext();
- OperationContext* txn = uniqueTxn.get();
+ OperationContext* opCtx = uniqueTxn.get();
- auto pd = ParsedDistinct::parse(txn,
+ auto pd = ParsedDistinct::parse(opCtx,
testns,
fromjson("{distinct: 'testcoll', key: 'y', query: {z: 7}}"),
ExtensionsCallbackDisallowExtensions(),
@@ -119,9 +119,9 @@ TEST(ParsedDistinctTest, ConvertToAggregationWithQuery) {
TEST(ParsedDistinctTest, ConvertToAggregationWithExplain) {
QueryTestServiceContext serviceContext;
auto uniqueTxn = serviceContext.makeOperationContext();
- OperationContext* txn = uniqueTxn.get();
+ OperationContext* opCtx = uniqueTxn.get();
- auto pd = ParsedDistinct::parse(txn,
+ auto pd = ParsedDistinct::parse(opCtx,
testns,
fromjson("{distinct: 'testcoll', key: 'x'}"),
ExtensionsCallbackDisallowExtensions(),