diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2022-05-10 17:54:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-24 05:17:25 +0000 |
commit | 4fab61e9c5006e9a4c06860dc9e49e1d422ee859 (patch) | |
tree | c383da8e16d40422c3dff8dea6a38c6e2935e256 /src/mongo/s/query/cluster_aggregation_planner.cpp | |
parent | d3dae653da44b8cb87ff2a9687c0468aa52b6b44 (diff) | |
download | mongo-4fab61e9c5006e9a4c06860dc9e49e1d422ee859.tar.gz |
SERVER-66360 Remove multi-user authentication support
Diffstat (limited to 'src/mongo/s/query/cluster_aggregation_planner.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_aggregation_planner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp index dc044f72309..0c80b838544 100644 --- a/src/mongo/s/query/cluster_aggregation_planner.cpp +++ b/src/mongo/s/query/cluster_aggregation_planner.cpp @@ -344,14 +344,14 @@ BSONObj establishMergingMongosCursor(OperationContext* opCtx, CursorId clusterCursorId = 0; if (cursorState == ClusterCursorManager::CursorState::NotExhausted) { - auto authUsers = AuthorizationSession::get(opCtx->getClient())->getAuthenticatedUserNames(); + auto authUser = AuthorizationSession::get(opCtx->getClient())->getAuthenticatedUserName(); clusterCursorId = uassertStatusOK(Grid::get(opCtx)->getCursorManager()->registerCursor( opCtx, ccc.releaseCursor(), requestedNss, ClusterCursorManager::CursorType::MultiTarget, ClusterCursorManager::CursorLifetime::Mortal, - authUsers)); + authUser)); } // Fill out the aggregation metrics in CurOp. |