summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r--src/mongo/client/dbclientcursor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h
index ae6fc33dfd6..4dca614591f 100644
--- a/src/mongo/client/dbclientcursor.h
+++ b/src/mongo/client/dbclientcursor.h
@@ -242,6 +242,14 @@ namespace mongo {
void dataReceived() { bool retry; std::string lazyHost; dataReceived( retry, lazyHost ); }
void dataReceived( bool& retry, std::string& lazyHost );
+
+ /**
+ * Called by dataReceived when the query was actually a command. Parses the command reply
+ * according to the RPC protocol used to send it, and then fills in the internal field
+ * of this cursor with the received data.
+ */
+ void commandDataReceived();
+
void requestMore();
void exhaustReceiveMore(); // for exhaust