summaryrefslogtreecommitdiff
path: root/db/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/db.cpp')
-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;