make lastAssert threadsafe

This commit is contained in:
Dwight
2009-12-08 14:34:09 -05:00
parent 6fff93be92
commit 0e2a11a69a
3 changed files with 16 additions and 2 deletions

View File

@@ -72,7 +72,14 @@ namespace mongo {
throw MsgAssertionException(msg);
}
boost::mutex *Assertion::_mutex = new boost::mutex();
string Assertion::toString() {
if( _mutex == 0 )
return "";
boostlock lk(*_mutex);
if ( !isSet() )
return "";