diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-31 15:45:36 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-31 15:46:42 -0500 |
commit | 01dd41df3fb54ec63d9dd8d2d08480d28e53cd5d (patch) | |
tree | 02f92d7d9d78fa4e64b2886738513d8db9016967 /s | |
parent | 6797df01a30ee2491a4be36a4528153fa863b521 (diff) | |
download | mongo-01dd41df3fb54ec63d9dd8d2d08480d28e53cd5d.tar.gz |
don't report errors to config via getLastError as those are different
Diffstat (limited to 's')
-rw-r--r-- | s/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/s/client.cpp b/s/client.cpp index 45337bcca12..2228ab6aaa0 100644 --- a/s/client.cpp +++ b/s/client.cpp @@ -230,8 +230,9 @@ namespace mongo { BSONObj res; bool ok = conn->runCommand( "admin" , options , res ); _addWriteBack( writebacks, res ); + string temp = DBClientWithCommands::getLastErrorString( res ); - if ( ok == false || temp.size() ) { + if ( conn->type() != ConnectionString::SYNC && ( ok == false || temp.size() ) ) { errors.push_back( temp ); errorObjects.push_back( res ); } |