| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Logically renumbering records</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Upgrade Guide" /> |
| 10 | <link rel="up" href="upgrade_3_2_toc.html" title="Chapter 12. Upgrading Berkeley DB 3.1 applications to Berkeley DB 3.2" /> |
| 11 | <link rel="prev" href="upgrade_3_2_callback.html" title="DB callback functions, app_private field" /> |
| 12 | <link rel="next" href="upgrade_3_2_incomplete.html" title="DB_INCOMPLETE" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Logically renumbering records</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="upgrade_3_2_callback.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 12. Upgrading Berkeley DB 3.1 applications to Berkeley DB 3.2</th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="upgrade_3_2_incomplete.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="sect1" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title" style="clear: both"><a id="upgrade_3_2_renumber"></a>Logically renumbering records</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <p>In the Berkeley DB 3.2 release, cursor adjustment semantics changed for Recno |
| 40 | databases with mutable record numbers. Before the 3.2 release, cursors |
| 41 | were adjusted to point to the previous or next record at the time the |
| 42 | record to which the cursor referred was deleted. This could lead to |
| 43 | unexpected behaviors. For example, two cursors referring to sequential |
| 44 | records that were both deleted would lose their relationship to each |
| 45 | other and would refer to the same position in the database instead of |
| 46 | their original sequential relationship. There were also command |
| 47 | sequences that would have unexpected results. For example, DB_AFTER |
| 48 | and DB_BEFORE cursor put operations, using a cursor previously used to |
| 49 | delete an item, would perform the put relative to the cursor's adjusted |
| 50 | position and not its original position.</p> |
| 51 | <p>In the Berkeley DB 3.2 release, cursors maintain their position in the tree |
| 52 | regardless of deletion operations using the cursor. Applications that |
| 53 | perform database operations, using cursors previously used to delete |
| 54 | entries in Recno databases with mutable record numbers, should be |
| 55 | evaluated to ensure that the new semantics do not cause application |
| 56 | failure.</p> |
| 57 | </div> |
| 58 | <div class="navfooter"> |
| 59 | <hr /> |
| 60 | <table width="100%" summary="Navigation footer"> |
| 61 | <tr> |
| 62 | <td width="40%" align="left"><a accesskey="p" href="upgrade_3_2_callback.html">Prev</a> </td> |
| 63 | <td width="20%" align="center"> |
| 64 | <a accesskey="u" href="upgrade_3_2_toc.html">Up</a> |
| 65 | </td> |
| 66 | <td width="40%" align="right"> <a accesskey="n" href="upgrade_3_2_incomplete.html">Next</a></td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td width="40%" align="left" valign="top">DB callback functions, app_private field </td> |
| 70 | <td width="20%" align="center"> |
| 71 | <a accesskey="h" href="index.html">Home</a> |
| 72 | </td> |
| 73 | <td width="40%" align="right" valign="top"> DB_INCOMPLETE</td> |
| 74 | </tr> |
| 75 | </table> |
| 76 | </div> |
| 77 | </body> |
| 78 | </html> |