summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-07-18 09:35:32 -0400
committerEliot Horowitz <eliot@10gen.com>2013-07-18 09:35:32 -0400
commitc95d4bc5744dc6aaa9abf202ebee0bee2ffa5463 (patch)
tree425674c15ddd5343ba88c0f612e2c2603ce65fd9 /src/mongo/db/dbmessage.h
parenta2960637041c11bc1d8b925e5a99975b7fe9485e (diff)
downloadmongo-c95d4bc5744dc6aaa9abf202ebee0bee2ffa5463.tar.gz
SERVER-6405: lots of prep work for Collection class
splitting pdfile into more components added ExtentManager which should be the only way to do DiskLoc -> Record
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index f43e1de54d2..a8ee7a7638c 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -20,9 +20,9 @@
#include "mongo/bson/bson_validate.h"
#include "mongo/client/constants.h"
-#include "mongo/db/instance.h"
#include "mongo/db/jsobj.h"
#include "mongo/util/net/message.h"
+#include "mongo/util/net/message_port.h"
namespace mongo {
@@ -129,9 +129,6 @@ namespace mongo {
const char * getns() const {
return data;
}
- void getns(Namespace& ns) const {
- ns = data;
- }
const char * afterNS() const {
return data + strlen( data ) + 1;
@@ -267,6 +264,20 @@ namespace mongo {
}
};
+ /**
+ * A response to a DbMessage.
+ */
+ struct DbResponse {
+ Message *response;
+ MSGID responseTo;
+ string exhaustNS; /* points to ns if exhaust mode. 0=normal mode*/
+ DbResponse(Message *r, MSGID rt) : response(r), responseTo(rt){ }
+ DbResponse() {
+ response = 0;
+ }
+ ~DbResponse() { delete response; }
+ };
+
void replyToQuery(int queryResultFlags,
AbstractMessagingPort* p, Message& requestMsg,
void *data, int size,