0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

Don't destroy db mutex

This commit is contained in:
Aaron 2009-01-29 17:26:07 -05:00
parent c00066302a
commit 1fe268276d
4 changed files with 5 additions and 5 deletions

View File

@ -601,8 +601,8 @@ namespace mongo {
{
dblock lk;
log() << "now exiting" << endl;
exit(12);
}
exit(12);
}
void setupSignals() {

View File

@ -50,7 +50,7 @@ namespace mongo {
}
};
extern boost::mutex dbMutex;
extern boost::mutex &dbMutex;
extern MutexInfo dbMutexInfo;
//extern int dbLocked;

View File

@ -40,7 +40,7 @@ namespace mongo {
bool master = false; // true means keep an op log
extern int curOp;
boost::mutex dbMutex;
boost::mutex &dbMutex( *(new boost::mutex) );
MutexInfo dbMutexInfo;
//int dbLocked = 0;

View File

@ -49,7 +49,7 @@
namespace mongo {
extern bool quiet;
extern boost::mutex dbMutex;
extern boost::mutex &dbMutex;
extern long long oplogSize;
int _updateObjects(const char *ns, BSONObj updateobj, BSONObj pattern, bool upsert, stringstream& ss, bool logOp=false);
bool _runCommands(const char *ns, BSONObj& jsobj, stringstream& ss, BufBuilder &b, BSONObjBuilder& anObjBuilder, bool fromRepl);
@ -256,7 +256,7 @@ namespace mongo {
result.append("ismaster", 1);
result.append("msg", "not paired");
}
return true;
}
} cmdismaster;