diff options
| author | Dwight <dmerriman@gmail.com> | 2008-06-11 17:15:28 -0400 |
|---|---|---|
| committer | Dwight <dmerriman@gmail.com> | 2008-06-11 17:15:28 -0400 |
| commit | 543621e070e54efa09c4417e20a696eb94f11f02 (patch) | |
| tree | 15207b0e7d8317c27f21d15aa3dd820d52083717 /db/db.cpp | |
| parent | 131e2eb860639e14234c9e004c5910635549f2b4 (diff) | |
v114 merge patchr0.0.4_rc3
Diffstat (limited to 'db/db.cpp')
| -rw-r--r-- | db/db.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/db/db.cpp b/db/db.cpp index 1d417c093f3..a4133fb04ed 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -152,6 +152,7 @@ void receivedDelete(Message& m) { } void receivedQuery(AbstractMessagingPort& dbMsgPort, Message& m, stringstream& ss) { + MSGID responseTo = m.data->id; DbMessage d(m); const char *ns = d.getns(); setClient(ns); @@ -166,7 +167,7 @@ void receivedQuery(AbstractMessagingPort& dbMsgPort, Message& m, stringstream& s QueryResult* msgdata; try { - msgdata = runQuery(ns, ntoskip, ntoreturn, query, fields, ss); + msgdata = runQuery(m, ns, ntoskip, ntoreturn, query, fields, ss); } catch( AssertionException ) { ss << " exception "; @@ -196,7 +197,7 @@ void receivedQuery(AbstractMessagingPort& dbMsgPort, Message& m, stringstream& s else { cout << "ERROR: client is null; ns=" << ns << endl; } - dbMsgPort.reply(m, resp); + dbMsgPort.reply(m, resp, responseTo); } void receivedGetMore(AbstractMessagingPort& dbMsgPort, Message& m, stringstream& ss) { @@ -274,7 +275,7 @@ public: }; void listen(int port) { - const char *Version = "db version: 112 6jun2008"; + const char *Version = "db version: 112.patch114 11jun2008"; problem() << Version << endl; cout << Version << endl; pdfileInit(); @@ -290,6 +291,9 @@ extern int callDepth; class JniMessagingPort : public AbstractMessagingPort { public: JniMessagingPort(Message& _container) : container(_container) { } + void reply(Message& received, Message& response, MSGID) { + container = response; + } void reply(Message& received, Message& response) { container = response; } |
