Ejemplo n.º 1
0
 void WRITETODATAFILES(const JSectHeader& h, AlignedBuilder& uncompressed) {
     Timer t;
     WRITETODATAFILES_Impl1(h, uncompressed);
     unsigned long long m = t.micros();
     stats.curr->_writeToDataFilesMicros += m;
     MONGO_LOG(2) << "journal WRITETODATAFILES " << m / 1000.0 << "ms" << endl;
 }
Ejemplo n.º 2
0
        void WRITETODATAFILES(const JSectHeader& h, AlignedBuilder& uncompressed) {
#ifdef _WIN32
            SimpleMutex::scoped_lock _globalFlushMutex(globalFlushMutex);
#endif
            Timer t;
            WRITETODATAFILES_Impl1(h, uncompressed);
            long long m = t.micros();
            stats.curr->_writeToDataFilesMicros += m;
            LOG(2) << "journal WRITETODATAFILES " << m / 1000.0 << "ms" << endl;
        }
Ejemplo n.º 3
0
        // concurrency: in mmmutex, not necessarily in dbMutex
        void WRITETODATAFILES() {
            Timer t;
#if defined(_EXPERIMENTAL)
            WRITETODATAFILES_Impl3();
#else
            WRITETODATAFILES_Impl1();
#endif
            stats.curr->_writeToDataFilesMicros += t.micros();


        }