summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorVishnu Kaushik <vishnu.kaushik@mongodb.com>2019-06-19 14:29:35 -0400
committerVishnu Kaushik <vishnu.kaushik@mongodb.com>2019-06-19 14:30:22 -0400
commit8b0a7b102b92891818175358b0ca82a545105023 (patch)
tree5b8cf8a3a0a01f66f99e6aac99318a4d53d1ab18 /src/mongo/db/dbmessage.h
parent0194322119368dd4918212cd0a5108023748e534 (diff)
downloadmongo-8b0a7b102b92891818175358b0ca82a545105023.tar.gz
SERVER-41481 1 started new branch, added functionality for exhaustCursorId once again. Trying to kill the purple
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index f6281c3614c..c4c8bd3b243 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -445,6 +445,12 @@ Message makeGetMoreMessage(StringData ns, long long cursorId, int nToReturn, int
struct DbResponse {
Message response; // If empty, nothing will be returned to the client.
std::string exhaustNS; // Namespace of cursor if exhaust mode, else "".
+
+ /**
+ * Cursor ID when running on exhaust mode. Defaults to '0', indicating
+ * that the cursor is exhausted.
+ */
+ long long exhaustCursorId = 0;
};
/**