passthrough mongod $err through mognos SERVER-1431
This commit is contained in:
@@ -72,6 +72,13 @@ namespace mongo {
|
||||
throw StaleConfigException( _ns , "ClusteredCursor::query" );
|
||||
}
|
||||
|
||||
if ( cursor->hasResultFlag( ResultFlag_ErrSet ) ){
|
||||
conn.done();
|
||||
BSONObj o = cursor->next();
|
||||
throw UserException( o["code"].numberInt() , o["$err"].String() );
|
||||
}
|
||||
|
||||
|
||||
cursor->attach( &conn );
|
||||
|
||||
conn.done();
|
||||
|
||||
Reference in New Issue
Block a user