diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-02-04 14:08:32 -0500 |
---|---|---|
committer | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-02-26 19:13:19 -0500 |
commit | a9277e874039f32ce0d848fcdfb10de705c96fd9 (patch) | |
tree | 6bf222fec20aa30afe648d54becb0e0922707b0d /src/mongo/db/commands/kill_op_cmd_base.cpp | |
parent | 1ba2e45711fb15801539d0bec022a2a474155c09 (diff) | |
download | mongo-a9277e874039f32ce0d848fcdfb10de705c96fd9.tar.gz |
SERVER-39058 Synchronize user set modification in AuthorizationSession with Client
Diffstat (limited to 'src/mongo/db/commands/kill_op_cmd_base.cpp')
-rw-r--r-- | src/mongo/db/commands/kill_op_cmd_base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/kill_op_cmd_base.cpp b/src/mongo/db/commands/kill_op_cmd_base.cpp index 1306013467d..f6394998de4 100644 --- a/src/mongo/db/commands/kill_op_cmd_base.cpp +++ b/src/mongo/db/commands/kill_op_cmd_base.cpp @@ -95,7 +95,8 @@ KillOpCmdBase::findOpForKilling(Client* client, unsigned int opId) { OperationContext* opToKill = std::get<1>(*lockAndOpCtx); if (authzSession->isAuthorizedForActionsOnResource(ResourcePattern::forClusterResource(), ActionType::killop) || - authzSession->isCoauthorizedWithClient(opToKill->getClient())) { + authzSession->isCoauthorizedWithClient(opToKill->getClient(), + std::get<0>(*lockAndOpCtx))) { return lockAndOpCtx; } } |