summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.h
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-06-09 23:25:24 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-06-16 16:25:29 -0400
commit0641c637933aef4290963d99fe9cf9c5509a29ef (patch)
tree76420d30578cd4f33bd628bdd3e23c06c4388720 /src/mongo/client/dbclientcursor.h
parent53548f1cffe0e0cc95f5cdf13d8b699c93dbe9fc (diff)
downloadmongo-0641c637933aef4290963d99fe9cf9c5509a29ef.tar.gz
SERVER-18292 support OP_COMMAND in commands executed using a DBClientCursor
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