void ClientInfo::_addWriteBack( vector<WBInfo>& all , const BSONObj& gle ) { BSONElement w = gle["writeback"]; if ( w.type() != jstOID ) return; BSONElement cid = gle["connectionId"]; if ( cid.eoo() ) { error() << "getLastError writeback can't work because of version mis-match" << endl; return; } all.push_back( WBInfo( cid.numberLong() , w.OID() ) ); }
void ClientInfo::_addWriteBack( vector<WBInfo>& all , const BSONObj& gle ) { BSONElement w = gle["writeback"]; if ( w.type() != jstOID ) return; BSONElement cid = gle["connectionId"]; if ( cid.eoo() ) { error() << "getLastError writeback can't work because of version mismatch" << endl; return; } string ident = ""; if ( gle["instanceIdent"].type() == String ) ident = gle["instanceIdent"].String(); all.push_back( WBInfo( WriteBackListener::ConnectionIdent( ident , cid.numberLong() ) , w.OID() ) ); }