diff options
author | Alberto Lerner <alerner@10gen.com> | 2010-07-18 15:15:31 -0400 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-07-18 15:15:31 -0400 |
commit | 6f728ae260ecc6f2d923ffbe2fea9bdc90c4287b (patch) | |
tree | 3de0fad0e877967a80bcdea5d51532f8d84048ac /db/cloner.cpp | |
parent | 96319c70d43e427ad54085cd4f1ec484a4c3940d (diff) | |
download | mongo-6f728ae260ecc6f2d923ffbe2fea9bdc90c4287b.tar.gz |
Eliminate BSONObj->string implicit conversion
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r-- | db/cloner.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp index dc87b901379..f5b6d314e64 100644 --- a/db/cloner.cpp +++ b/db/cloner.cpp @@ -367,7 +367,7 @@ namespace mongo { cmdSpec << "logSizeMb" << logSizeMb; BSONObj info; if ( !conn->runCommand( db, cmdSpec.done(), info ) ) { - errmsg = "logCollection failed: " + (string)info; + errmsg = "logCollection failed: " + info.toString(); return false; } } @@ -444,7 +444,7 @@ namespace mongo { dbtemprelease t; BSONObj info; if ( !conn->runCommand( db, BSON( "logCollection" << ns << "validateComplete" << 1 ), info ) ) { - errmsg = "logCollection failed: " + (string)info; + errmsg = "logCollection failed: " + info.toString(); return false; } } @@ -676,7 +676,7 @@ namespace mongo { if ( !authConn_->connect( fromhost, errmsg ) ) return false; if( !authConn_->runCommand( "admin", BSON( "getnonce" << 1 ), ret ) ) { - errmsg = "couldn't get nonce " + string( ret ); + errmsg = "couldn't get nonce " + ret.toString(); return false; } } @@ -726,7 +726,7 @@ namespace mongo { { dbtemprelease t; if ( !authConn_->runCommand( fromdb, BSON( "authenticate" << 1 << "user" << username << "nonce" << nonce << "key" << key ), ret ) ) { - errmsg = "unable to login " + string( ret ); + errmsg = "unable to login " + ret.toString(); return false; } } |