diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-03-15 17:15:27 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-03-18 18:02:51 -0400 |
commit | 42676483093ae14b1f9f4a25190f0e00edcd020c (patch) | |
tree | 37494f22b7b7062b408dd9ca1c4797611c60d078 /src/mongo/db/cloner.h | |
parent | 7a34ad789202cd8b4e7fb941c57c5347ba2d4ea6 (diff) | |
download | mongo-42676483093ae14b1f9f4a25190f0e00edcd020c.tar.gz |
SERVER-8280 SERVER-7864 Make copydb command work without username/password when dest machine has auth but source does not
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r-- | src/mongo/db/cloner.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h index 6f4e104ec60..de437ea3c6a 100644 --- a/src/mongo/db/cloner.h +++ b/src/mongo/db/cloner.h @@ -58,8 +58,10 @@ namespace mongo { * validate the cloner query was successful * @param cur Cursor the query was executed on * @param errCode out Error code encountered during the query + * @param errmsg out Error message encountered during the query */ - static bool validateQueryResults(const auto_ptr<DBClientCursor>& cur, int32_t* errCode); + static bool validateQueryResults(const auto_ptr<DBClientCursor>& cur, int32_t* errCode, + string& errmsg); /** * @param errmsg out - Error message (if encountered). |