diff options
author | Ian Boros <ian.boros@mongodb.com> | 2020-08-13 14:08:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-27 03:08:04 +0000 |
commit | 3a32dd0a25105ba547712190ff503a46e91f392e (patch) | |
tree | 3bf333229d495a35ffde62aa0ace0e312a720352 /src/mongo/db/commands/user_management_commands.cpp | |
parent | 6791200c0513187dc193895af70cc170db9afc78 (diff) | |
download | mongo-3a32dd0a25105ba547712190ff503a46e91f392e.tar.gz |
SERVER-50217 change auth op observer to handle $v:1 and $v:2 updates
This commit also removes an implicit constructor for write_ops::UpdateModification.
Diffstat (limited to 'src/mongo/db/commands/user_management_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/user_management_commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/user_management_commands.cpp b/src/mongo/db/commands/user_management_commands.cpp index 15b40b7ddc6..5694a2368cb 100644 --- a/src/mongo/db/commands/user_management_commands.cpp +++ b/src/mongo/db/commands/user_management_commands.cpp @@ -274,7 +274,8 @@ Status updateAuthzDocuments(OperationContext* opCtx, updateOp.setUpdates({[&] { write_ops::UpdateOpEntry entry; entry.setQ(query); - entry.setU(updatePattern); + entry.setU(write_ops::UpdateModification::parseFromClassicUpdate( + updatePattern)); entry.setMulti(multi); entry.setUpsert(upsert); return entry; |