diff options
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r-- | src/mongo/db/commands/distinct.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp index f61ab426299..59b2305203c 100644 --- a/src/mongo/db/commands/distinct.cpp +++ b/src/mongo/db/commands/distinct.cpp @@ -273,7 +273,8 @@ public: dbName, vts, std::move(viewAggregation.getValue())); BSONObj aggResult = CommandHelpers::runCommandDirectly(opCtx, aggRequest); - uassertStatusOK(ViewResponseFormatter(aggResult).appendAsDistinctResponse(&result)); + uassertStatusOK(ViewResponseFormatter(aggResult).appendAsDistinctResponse( + &result, dbName.tenantId())); return true; } |