summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-03-31 11:50:45 -0400
committerDwight <dmerriman@gmail.com>2008-03-31 11:50:45 -0400
commit74e521644223c1502a6c7408bd55b5a4cc199850 (patch)
treec3ba8b67642c2c1a87683b1ff61576bd61cbabb2
parent985d443af0c39a46e3c0257a981595f36cbb7665 (diff)
downloadmongo-74e521644223c1502a6c7408bd55b5a4cc199850.tar.gz
v105 bug with client variable
-rw-r--r--db/db.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 0b06c66288f..9274248ac83 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -277,7 +277,7 @@ public:
};
void listen(int port) {
- cout << "db version: 104 mar2008 minilex" << endl;
+ cout << "db version: 105 31mar2008 minilex" << endl;
pdfileInit();
testTheDb();
cout << curTimeMillis() % 10000 << " waiting for connections...\n" << endl;
@@ -304,6 +304,8 @@ public:
if there is one, out.data will be non-null on return.
The out.data buffer will automatically clean up when out
goes out of scope (out.freeIt==true)
+
+ note we should already be in the mutex lock from connThread() at this point.
*/
void jniCallback(Message& m, Message& out)
{
@@ -399,8 +401,6 @@ void connThread()
Message m;
while( 1 ) {
- client = 0;
- curOp = 0;
m.reset();
stringstream ss;
@@ -419,6 +419,8 @@ void connThread()
{
lock lk(dbMutex);
Timer t;
+ client = 0;
+ curOp = 0;
bool log = false;
curOp = m.data->operation;