@ Override public void onTxCommit ( Transaction tx ) { if ( ! tx . isReadOnly ( ) && enableLogging ) { LogSeqNum lsn = new CommitRecord ( txNum ) . writeToLog ( ) ; VanillaDb . logMgr ( ) . flush ( lsn ) ; } }
Writes a commit record to the log and then flushes the log record to disk .