clearer shutdown logging

This commit is contained in:
dwight
2011-01-22 22:52:06 -05:00
parent 5fe08938f0
commit 0380e6fb2c

View File

@@ -725,7 +725,7 @@ namespace mongo {
FileAllocator::get()->waitUntilFinished();
if( cmdLine.dur ) {
log() << "shutdown: final commit..." << endl;
log() << "shutdown: lock for final commit..." << endl;
{
int n = 10;
while( 1 ) {
@@ -733,6 +733,7 @@ namespace mongo {
// to be consistent with that.
readlocktry w("", 20000);
if( w.got() ) {
log() << "shutdown: final commit..." << endl;
getDur().commitNow();
break;
}