private void CommitAndReleaseTransaction(TransactionService transaction) { transaction.Commit(); _monitor.ReleaseTransaction(transaction); if (_header.Pragmas.Checkpoint > 0 && _disk.GetLength(FileOrigin.Log) > (_header.Pragmas.Checkpoint * PAGE_SIZE)) { _walIndex.TryCheckpoint(); } }
private void CommitAndReleaseTransaction(TransactionService transaction) { transaction.Commit(); _monitor.ReleaseTransaction(transaction); if (_header.Pragmas.Checkpoint > 0 && transaction.Mode == LockMode.Write && _disk.LogLength > (_header.Pragmas.Checkpoint * PAGE_SIZE)) { _walIndex.Checkpoint(true, false); } }