renumber.so

来自「berkeley db 4.6.21的源码。berkeley db是一个简单的数」· SO 代码 · 共 30 行

SO
30
字号
m4_comment([$Id: renumber.so,v 1.4 2001/05/05 01:49:34 bostic Exp $])m4_ref_title(Upgrading m4_db Applications,    Release 3.2: Logically renumbering records,,    upgrade.3.2/callback, upgrade.3.2/incomplete)m4_p([dnlIn the m4_db 3.2 release, cursor adjustment semantics changed for Recnodatabases with mutable record numbers.  Before the 3.2 release, cursorswere adjusted to point to the previous or next record at the time therecord to which the cursor referred was deleted.  This could lead tounexpected behaviors.  For example, two cursors referring to sequentialrecords that were both deleted would lose their relationship to eachother and would refer to the same position in the database instead oftheir original sequential relationship.  There were also commandsequences that would have unexpected results.  For example, DB_AFTERand DB_BEFORE cursor put operations, using a cursor previously used todelete an item, would perform the put relative to the cursor's adjustedposition and not its original position.])m4_p([dnlIn the m4_db 3.2 release, cursors maintain their position in the treeregardless of deletion operations using the cursor.  Applications thatperform database operations, using cursors previously used to deleteentries in Recno databases with mutable record numbers, should beevaluated to ensure that the new semantics do not cause applicationfailure.])m4_page_footer

⌨️ 快捷键说明

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