diff options
-rw-r--r-- | src/mongo/db/kill_sessions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/kill_sessions.cpp b/src/mongo/db/kill_sessions.cpp index 0d830500154..a34c1b6b4cb 100644 --- a/src/mongo/db/kill_sessions.cpp +++ b/src/mongo/db/kill_sessions.cpp @@ -87,10 +87,10 @@ getKillAllSessionsByPatternImpersonateData(const KillAllSessionsByPattern& patte } if (pattern.getRoles()) { - roles.reserve(pattern.getUsers()->size()); + roles.reserve(pattern.getRoles()->size()); - for (auto&& user : pattern.getUsers().get()) { - roles.emplace_back(user.getUser(), user.getDb()); + for (auto&& role : pattern.getRoles().get()) { + roles.emplace_back(role.getRole(), role.getDb()); } } |