📄 intro.so
字号:
m4_comment([$Id: intro.so,v 10.25 2006/11/13 18:05:02 bostic Exp $])m4_ref_title(Logging Subsystem, Introduction to the logging subsystem, introduction to the @logging subsystem, lock/nondb, log/config)m4_p([dnlThe Logging subsystem is the logging facility used by m4_db. It islargely m4_db-specific, although it is potentially useful outside ofthe m4_db package for applications wanting write-ahead logging support.Applications wanting to use the log for purposes other than logging filemodifications based on a set of open file descriptors will almostcertainly need to make source code modifications to the m4_db codebase.])m4_p([dnlA log can be shared by any number of threads of control. Them4_refT(dbenv_open) is used to open a log. When the log is no longerin use, it should be closed using the m4_refT(dbenv_close).])m4_p([dnlIndividual log entries are identified by log sequence numbers. Logsequence numbers are stored in an opaque object, a m4_ref(DbLsn).])m4_p([dnlThe m4_refT(log_cursor) is used to allocate a log cursor. Log cursorshave two methods: m4_refT(logc_get) to retrieve log records from thelog, and m4_refT(logc_close) to destroy the cursor.])m4_p([dnlThere are additional methods for integrating the log subsystem with atransaction processing system:])m4_tagbeginm4_tag(m4_ref(log_flush), [dnlFlushes the log up to a particular log sequence number.])m4_tag(m4_ref(log_compare), [dnlAllows applications to compare any two log sequence numbers.])m4_tag([m4_ref(log_file) ], [dnlMaps a log sequence number to the specific log file that contains it.])m4_tag(m4_ref(log_archive), [dnlReturns various sets of log filenames. These methods are used fordatabase administration; for example, to determine if log files maysafely be removed from the system.])m4_tag([m4_ref(log_stat) ], [dnlThe display m4_ref(db_stat) utility uses the m4_refT(log_stat) todisplay statistics about the log.])m4_tag(m4_ref(dbenv_remove), [dnlThe log meta-information (but not the log files themselves) may beremoved using the m4_refT(dbenv_remove).])m4_tagendinclude(log/m4.methods)m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -