diff options
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r-- | src/mongo/client/dbclientcursor.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h index a130b36cb42..3ce07e210c0 100644 --- a/src/mongo/client/dbclientcursor.h +++ b/src/mongo/client/dbclientcursor.h @@ -35,7 +35,6 @@ #include "mongo/client/export_macros.h" #include "mongo/db/jsobj.h" #include "mongo/db/json.h" -#include "mongo/util/log.h" #include "mongo/util/net/message.h" namespace mongo { @@ -86,17 +85,7 @@ namespace mongo { void putBack( const BSONObj &o ) { _putBack.push( o.getOwned() ); } /** throws AssertionException if get back { $err : ... } */ - BSONObj nextSafe() { - MONGO_LOG_DEFAULT_COMPONENT_LOCAL(::mongo::logger::LogComponent::kNetworking); - - BSONObj o = next(); - if( strcmp(o.firstElementFieldName(), "$err") == 0 ) { - std::string s = "nextSafe(): " + o.toString(); - LOG(5) << s; - uasserted(13106, s); - } - return o; - } + BSONObj nextSafe(); /** peek ahead at items buffered for future next() calls. never requests new data from the server. so peek only effective |