diff options
author | Geir Magnusson Jr <geir@pthbbbbbb-2.local> | 2008-03-31 12:02:12 -0400 |
---|---|---|
committer | Geir Magnusson Jr <geir@pthbbbbbb-2.local> | 2008-03-31 12:02:12 -0400 |
commit | f51fd34f916470ad59bd562ffb5b39171e65087e (patch) | |
tree | 76962476e04e2a0950243a941c19be799a3d775e | |
parent | 49a9019ec686a968d9ee44ce329d7c5a62a7411e (diff) | |
parent | 74e521644223c1502a6c7408bd55b5a4cc199850 (diff) | |
download | mongo-f51fd34f916470ad59bd562ffb5b39171e65087e.tar.gz |
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
-rw-r--r-- | db/db.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/db/db.cpp b/db/db.cpp index 1023bfbb02d..b3c66d66ab2 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 on port " << port << " ...\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;
|