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:
parent
c00066302a
commit
1fe268276d
@ -601,8 +601,8 @@ namespace mongo {
|
||||
{
|
||||
dblock lk;
|
||||
log() << "now exiting" << endl;
|
||||
exit(12);
|
||||
}
|
||||
exit(12);
|
||||
}
|
||||
|
||||
void setupSignals() {
|
||||
|
2
db/db.h
2
db/db.h
@ -50,7 +50,7 @@ namespace mongo {
|
||||
}
|
||||
};
|
||||
|
||||
extern boost::mutex dbMutex;
|
||||
extern boost::mutex &dbMutex;
|
||||
extern MutexInfo dbMutexInfo;
|
||||
//extern int dbLocked;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user