summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-02-26 14:35:54 +1100
committerSpencer T Brody <spencer@mongodb.com>2014-02-28 12:30:04 +1100
commit59de90f6d4b1aa9e753921031f1f821611720a2f (patch)
treec1a404960bf3b832990f91aad00294a48fc3728d /src/mongo
parentba9db2cc41b42e8867d84d14761659fe292d5a95 (diff)
downloadmongo-59de90f6d4b1aa9e753921031f1f821611720a2f.tar.gz
SERVER-12885 Make sure mongodump can dump admin.system.users when explicitly asked to
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/tools/mongodump_options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/tools/mongodump_options.cpp b/src/mongo/tools/mongodump_options.cpp
index e050afa5463..74d07c838fb 100644
--- a/src/mongo/tools/mongodump_options.cpp
+++ b/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