diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2017-07-28 10:57:23 -0400 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2017-07-30 15:15:14 -0400 |
commit | 238cc884e33d67bbfea7a1a93d2f19b1922de675 (patch) | |
tree | 90644568639ef8cd8d751824b83fdcd59ef5687a /src/mongo/db/auth | |
parent | dcb9dbffa65d8ddcf5be80e88868fd11c01397df (diff) | |
download | mongo-238cc884e33d67bbfea7a1a93d2f19b1922de675.tar.gz |
SERVER-30398 setFeatureCompatibilityVersion shouldn't disable custom roles
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/role_graph_update.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/auth/role_graph_update.cpp b/src/mongo/db/auth/role_graph_update.cpp index e4bd4b80cbc..692529feb5c 100644 --- a/src/mongo/db/auth/role_graph_update.cpp +++ b/src/mongo/db/auth/role_graph_update.cpp @@ -306,6 +306,12 @@ Status handleOplogCommand(RoleGraph* roleGraph, const BSONObj& cmdObj) { // We don't care about these if they're not on the roles collection. return Status::OK(); } + + if ((cmdName == "collMod") && (cmdObj.nFields() == 1)) { + // We also don't care about empty modifications even if they are on roles collection + return Status::OK(); + } + // No other commands expected. Warn. return Status(ErrorCodes::OplogOperationUnsupported, "Unsupported oplog operation"); } |