Exemple #1
0
 void Journal::journal(const AlignedBuilder& b) {
     try {
         mutex::scoped_lock lk(_lfMutex);
         if( _lf == 0 )
             open();
         written += b.len();
         _lf->synchronousAppend((void *) b.buf(), b.len());
     }
     catch(std::exception& e) { 
         log() << "warning exception in dur::journal " << e.what() << endl;
     }
 }
Exemple #2
0
 void Journal::journal(const AlignedBuilder& b) {
     try {
         mutex::scoped_lock lk(_curLogFileMutex);
         if( _curLogFile == 0 )
             open();
         stats.curr._journaledBytes += b.len();
         _written += b.len();
         _curLogFile->synchronousAppend((void *) b.buf(), b.len());
     }
     catch(std::exception& e) { 
         log() << "warning exception in dur::journal " << e.what() << endl;
     }
 }
 static void WRITETODATAFILES_Impl1(const JSectHeader& h, AlignedBuilder& uncompressed) {
     LockMongoFilesShared lk;
     MONGO_LOG(3) << "journal WRITETODATAFILES 1" << endl;
     RecoveryJob::get().processSection(&h, uncompressed.buf(), uncompressed.len(), 0);
     MONGO_LOG(3) << "journal WRITETODATAFILES 2" << endl;
 }