Permalink
Browse files

SERVER-12885 Make sure mongodump can dump admin.system.users when exp…

…licitly asked to
  • Loading branch information...
stbrody committed Feb 26, 2014
1 parent ba9db2c commit 59de90f6d4b1aa9e753921031f1f821611720a2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mongo/tools/mongodump_options.cpp
@@ -143,7 +143,7 @@ namespace mongo {
// and roles if --dumpDbUsersAndRoles provided or you're dumping the admin db.
mongoDumpGlobalParams.dumpUsersAndRoles = hasParam("dumpDbUsersAndRoles") ||
(toolGlobalParams.db.empty() && toolGlobalParams.coll.empty()) ||
- (toolGlobalParams.db == "admin" && toolGlobalParams.coll.empty());
+ toolGlobalParams.db == "admin";
if (mongoDumpGlobalParams.outputDirectory == "-") {
// write output to standard error to avoid mangling output

0 comments on commit 59de90f

Please sign in to comment.