summaryrefslogtreecommitdiff
path: root/s
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-31 15:45:36 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-31 15:46:42 -0500
commit01dd41df3fb54ec63d9dd8d2d08480d28e53cd5d (patch)
tree02f92d7d9d78fa4e64b2886738513d8db9016967 /s
parent6797df01a30ee2491a4be36a4528153fa863b521 (diff)
downloadmongo-01dd41df3fb54ec63d9dd8d2d08480d28e53cd5d.tar.gz
don't report errors to config via getLastError as those are different
Diffstat (limited to 's')
-rw-r--r--s/client.cpp3
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 );
}