diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-06-13 13:04:30 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-06-13 15:24:31 -0400 |
commit | 4778d51c02fbbcb0d9ded0440320ac19cec156f3 (patch) | |
tree | b38bca83404161b5657e57e88fedd38291dff994 /src/mongo/db/instance.h | |
parent | 57058157c96c24336089c96ff2dd19e5bf1519b3 (diff) | |
download | mongo-4778d51c02fbbcb0d9ded0440320ac19cec156f3.tar.gz |
SERVER-6053 - make sure not to point to memory in a query Message
Diffstat (limited to 'src/mongo/db/instance.h')
-rw-r--r-- | src/mongo/db/instance.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/instance.h b/src/mongo/db/instance.h index 8a2507363b7..620ed66ca43 100644 --- a/src/mongo/db/instance.h +++ b/src/mongo/db/instance.h @@ -62,11 +62,10 @@ namespace mongo { struct DbResponse { Message *response; MSGID responseTo; - const char *exhaust; /* points to ns if exhaust mode. 0=normal mode*/ - DbResponse(Message *r, MSGID rt) : response(r), responseTo(rt), exhaust(0) { } + string exhaustNS; /* points to ns if exhaust mode. 0=normal mode*/ + DbResponse(Message *r, MSGID rt) : response(r), responseTo(rt){ } DbResponse() { response = 0; - exhaust = 0; } ~DbResponse() { delete response; } }; |