⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkpoint.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: checkpoint.so,v 10.22 2003/12/09 18:57:46 bostic Exp $])m4_ref_title(m4_tam Applications,    Checkpoints,    checkpoints in @transaction protected applications,    transapp/deadlock, transapp/archival)m4_p([dnlThe second component of the infrastructure is performing checkpoints ofthe log files.  Performing checkpoints is necessary for two reasons.])m4_p([dnlFirst, you may be able to remove m4_db log files from your databaseenvironment after a checkpoint.  Change records are written into the logfiles when databases are modified, but the actual changes to thedatabase are not necessarily written to disk.  When a checkpoint isperformed, changes to the database are written into the backing databasefile.  Once the database pages are written, log files can be archivedand removed from the database environment because they will never beneeded for anything other than catastrophic failure.  (Log files whichare involved in active transactions may not be removed, and there mustalways be at least one log file in the database environment.)])m4_p([dnlThe second reason to perform checkpoints is because checkpoint frequencyis inversely proportional to the amount of time it takes to run databaserecovery after a system or application failure.  This is becauserecovery after failure has to redo or undo changes only since the lastcheckpoint, as changes before the checkpoint have all been flushed tothe databases.])m4_p([dnlm4_db provides a separate utility, m4_ref(db_checkpoint), which can beused to perform checkpoints.  Alternatively, applications can writetheir own checkpoint utility using the underlying m4_ref(txn_checkpoint)function.  The following code fragment checkpoints the databaseenvironment every 60 seconds:])include(ref/transapp/checkpoint.cs)m4_p([dnlBecause checkpoints can be quite expensive, choosing how often toperform a checkpoint is a common tuning parameter for m4_dbapplications.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -