diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2015-05-20 20:42:37 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2015-06-04 11:45:13 -0400 |
commit | 54d3fc36c9d9c296c9dd3e00575491294b2fd153 (patch) | |
tree | fcf443239843618305b580a49e49b26ac4b375b8 /mongodump | |
parent | 9718ae57b0934d246012efcbc073d77ebc9880d7 (diff) | |
download | mongo-54d3fc36c9d9c296c9dd3e00575491294b2fd153.tar.gz |
TOOLS-669 bugfix for CreateUsersRolesVersionIntentsForDB on archives
Diffstat (limited to 'mongodump')
-rw-r--r-- | mongodump/prepare.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mongodump/prepare.go b/mongodump/prepare.go index cccf5ddbd17..31cfa1f42f0 100644 --- a/mongodump/prepare.go +++ b/mongodump/prepare.go @@ -233,25 +233,25 @@ func (dump *MongoDump) CreateOplogIntents() error { } // CreateUsersRolesVersionIntentsForDB create intents to be written in to the specific -// collection folder, for the users, roles and version admin database collections +// database folder, for the users, roles and version admin database collections // And then it adds the intents in to the manager func (dump *MongoDump) CreateUsersRolesVersionIntentsForDB(db string) error { outDir := dump.outputPath(db, "") usersIntent := &intents.Intent{ - DB: "admin", - C: "system.users", + DB: db, + C: "$admin.system.users", BSONPath: filepath.Join(outDir, "$admin.system.users.bson"), } rolesIntent := &intents.Intent{ - DB: "admin", - C: "system.roles", + DB: db, + C: "$admin.system.roles", BSONPath: filepath.Join(outDir, "$admin.system.roles.bson"), } versionIntent := &intents.Intent{ - DB: "admin", - C: "system.version", + DB: db, + C: "$admin.system.version", BSONPath: filepath.Join(outDir, "$admin.system.version.bson"), } if dump.OutputOptions.Archive != "" { |