mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Merge branch 'master' of github.com:mongodb/mongo
This commit is contained in:
commit
a434fa5191
@ -804,6 +804,7 @@ namespace mongo {
|
||||
/* check for errors. the only one we really care about at
|
||||
this stage is "not master" */
|
||||
if ( clientPaired && nReturned ) {
|
||||
assert(data);
|
||||
BSONObj o(data);
|
||||
BSONElement e = o.firstElement();
|
||||
if ( strcmp(e.fieldName(), "$err") == 0 &&
|
||||
|
@ -213,7 +213,7 @@ namespace mongo {
|
||||
virtual bool call( Message &toSend, Message &response, bool assertOk=true ) = 0;
|
||||
virtual void say( Message &toSend ) = 0;
|
||||
virtual void sayPiggyBack( Message &toSend ) = 0;
|
||||
virtual void checkResponse( const string &data, int nReturned ) {}
|
||||
virtual void checkResponse( const char* data, int nReturned ) {}
|
||||
|
||||
/* used by QueryOption_Exhaust. To use that your subclass must implement this. */
|
||||
virtual void recv( Message& m ) { assert(false); }
|
||||
|
Loading…
Reference in New Issue
Block a user