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

📄 stability.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: stability.so,v 10.30 2005/02/10 20:02:34 bostic Exp $])m4_ref_title(Access Methods,    Cursor stability,    [@cursor stability, cursor @stability], am_misc/error, am_misc/dbsizes)m4_p([dnlIn the absence of locking, no guarantees are made about the stabilityof cursors in different threads of control.  However, the Btree, Queueand Recno access methods guarantee that cursor operations, interspersedwith any other operation in the same thread of control will alwaysreturn keys in order and will return each non-deleted key/data pairexactly once.  Because the Hash access method uses a dynamic hashingalgorithm, it cannot guarantee any form of stability in the presence ofinserts and deletes unless transactional locking is performed.])m4_p([dnlIf locking was specified when the m4_db environment was opened, buttransactions are not in effect, the access methods provide repeatablereads with respect to the cursor.  That is, a m4_ref(DB_CURRENT) callon the cursor is guaranteed to return the same record as was returnedon the last call to the cursor.])m4_idefz(degrees of isolation, degrees of @isolation)m4_p([dnlIn the presence of transactions, the Btree, Hash and Recno accessmethods provide degree 3 isolation (serializable transactions).  TheQueue access method provides degree 3 isolation with the exception thatit permits phantom records to appear between calls.  That is, deletedrecords are not locked, therefore another transaction may replace adeleted record between two calls to retrieve it.  The record would notappear in the first call but would be seen by the second call.  Forreaders not enclosed in transactions, all access method calls providedegree 2 isolation, that is, reads are not repeatable.  A transactionmay be declared to run with degree 2 isolation by specifying them4_ref(DB_READ_COMMITTED) flag.  Finally, m4_db provides degree 1 isolationwhen the m4_ref(DB_READ_UNCOMMITTED) flag is specified; that is, readsmay see data modified in transactions which have not yet committed.])m4_p([dnlFor all access methods, a cursor scan of the database performed withinthe context of a transaction is guaranteed to return each key/data paironce and only once, except in the following case.  If, while performinga cursor scan using the Hash access method, the transaction performingthe scan inserts a new pair into the database, it is possible thatduplicate key/data pairs will be returned.])m4_page_footer

⌨️ 快捷键说明

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