• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/programmer_reference/
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>Berkeley DB 4.3.29 Change Log</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 Programmer's Reference Guide" />
10    <link rel="up" href="upgrade_4_3_toc.html" title="Chapter��40.��Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3" />
11    <link rel="prev" href="upgrade_4_3_disk.html" title="Release 4.3: Upgrade Requirements" />
12    <link rel="next" href="upgrade_4_4_toc.html" title="Chapter��41.��Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Berkeley DB 4.3.29 Change Log</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="upgrade_4_3_disk.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��40.��Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3</th>
23          <td width="20%" align="right">��<a accesskey="n" href="upgrade_4_4_toc.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="sect1" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title" style="clear: both"><a id="changelog_4_3_29"></a>Berkeley DB 4.3.29 Change Log</h2>
33          </div>
34        </div>
35      </div>
36      <div class="toc">
37        <dl>
38          <dt>
39            <span class="sect2">
40              <a href="changelog_4_3_29.html#id1648954">Database or Log File On-Disk Format Changes:</a>
41            </span>
42          </dt>
43          <dt>
44            <span class="sect2">
45              <a href="changelog_4_3_29.html#id1649001">New Features:</a>
46            </span>
47          </dt>
48          <dt>
49            <span class="sect2">
50              <a href="changelog_4_3_29.html#id1649096">Database Environment Changes:</a>
51            </span>
52          </dt>
53          <dt>
54            <span class="sect2">
55              <a href="changelog_4_3_29.html#id1649087">Concurrent Data Store Changes:</a>
56            </span>
57          </dt>
58          <dt>
59            <span class="sect2">
60              <a href="changelog_4_3_29.html#id1649052">General Access Method Changes:</a>
61            </span>
62          </dt>
63          <dt>
64            <span class="sect2">
65              <a href="changelog_4_3_29.html#id1649244">Btree Access Method Changes:</a>
66            </span>
67          </dt>
68          <dt>
69            <span class="sect2">
70              <a href="changelog_4_3_29.html#id1648961">Hash Access Method Changes:</a>
71            </span>
72          </dt>
73          <dt>
74            <span class="sect2">
75              <a href="changelog_4_3_29.html#id1649057">Queue Access Method Changes:</a>
76            </span>
77          </dt>
78          <dt>
79            <span class="sect2">
80              <a href="changelog_4_3_29.html#id1648990">Recno Access Method Changes</a>
81            </span>
82          </dt>
83          <dt>
84            <span class="sect2">
85              <a href="changelog_4_3_29.html#id1648762">C++-specific API Changes:</a>
86            </span>
87          </dt>
88          <dt>
89            <span class="sect2">
90              <a href="changelog_4_3_29.html#id1649308">Java-specific API Changes:</a>
91            </span>
92          </dt>
93          <dt>
94            <span class="sect2">
95              <a href="changelog_4_3_29.html#id1649537">Tcl-specific API Changes:</a>
96            </span>
97          </dt>
98          <dt>
99            <span class="sect2">
100              <a href="changelog_4_3_29.html#id1649560">RPC-specific Client/Server Changes:</a>
101            </span>
102          </dt>
103          <dt>
104            <span class="sect2">
105              <a href="changelog_4_3_29.html#id1649614">Replication Changes:</a>
106            </span>
107          </dt>
108          <dt>
109            <span class="sect2">
110              <a href="changelog_4_3_29.html#id1649598">XA Resource Manager Changes:</a>
111            </span>
112          </dt>
113          <dt>
114            <span class="sect2">
115              <a href="changelog_4_3_29.html#id1649020">Locking Subsystem Changes:</a>
116            </span>
117          </dt>
118          <dt>
119            <span class="sect2">
120              <a href="changelog_4_3_29.html#id1649766">Logging Subsystem Changes:</a>
121            </span>
122          </dt>
123          <dt>
124            <span class="sect2">
125              <a href="changelog_4_3_29.html#id1649841">Memory Pool Subsystem Changes:</a>
126            </span>
127          </dt>
128          <dt>
129            <span class="sect2">
130              <a href="changelog_4_3_29.html#id1649888">Transaction Subsystem Changes:</a>
131            </span>
132          </dt>
133          <dt>
134            <span class="sect2">
135              <a href="changelog_4_3_29.html#id1649904">Utility Changes:</a>
136            </span>
137          </dt>
138          <dt>
139            <span class="sect2">
140              <a href="changelog_4_3_29.html#id1649954">Configuration, Documentation, Portability and Build Changes:</a>
141            </span>
142          </dt>
143        </dl>
144      </div>
145      <div class="sect2" lang="en" xml:lang="en">
146        <div class="titlepage">
147          <div>
148            <div>
149              <h3 class="title"><a id="id1648954"></a>Database or Log File On-Disk Format Changes:</h3>
150            </div>
151          </div>
152        </div>
153        <div class="orderedlist">
154          <ol type="1">
155            <li>The on-disk log format has changed.</li>
156          </ol>
157        </div>
158      </div>
159      <div class="sect2" lang="en" xml:lang="en">
160        <div class="titlepage">
161          <div>
162            <div>
163              <h3 class="title"><a id="id1649001"></a>New Features:</h3>
164            </div>
165          </div>
166        </div>
167        <div class="orderedlist">
168          <ol type="1">
169            <li>Add support for light weight, transactionally protected Sequence
170	Number generation.  [#5739]</li>
171            <li>Add support for Degree 2 isolation. [#8689]</li>
172            <li>Add election generation information to replication to support Paxos
173	compliance. [#9068]</li>
174            <li>Add support for 64-bit and ANSI C implementations of the RPCGEN
175	utility.  [#9548]</li>
176          </ol>
177        </div>
178      </div>
179      <div class="sect2" lang="en" xml:lang="en">
180        <div class="titlepage">
181          <div>
182            <div>
183              <h3 class="title"><a id="id1649096"></a>Database Environment Changes:</h3>
184            </div>
185          </div>
186        </div>
187        <div class="orderedlist">
188          <ol type="1">
189            <li>Fix a bug where the permissions on system shared memory segments did
190	not match the mode specified in the DB_ENV-&gt;open() method.  [#8921]</li>
191            <li>Add a new return error from the DB_ENV-&gt;open() method call,
192DB_VERSION_MISMATCH, which is returned in the case of an application
193compiled under one version of Berkeley DB attempting to open an
194environment created under a different version.  [#9077]</li>
195            <li>Add support for importing databases from a transactional database
196	environment into a different environment. [#9324]</li>
197            <li>Fix a bug where a core dump could occur if a zero-length database
198	environment name was specified. [#9233]</li>
199            <li>Increase the number of environment regions to 100. [#9297]</li>
200            <li>Remove the DB_ENV-&gt;set_verbose() method flag DB_VERB_CHKPOINT.
201	[#9405]</li>
202            <li>Fix bugs where database environment getters could return incorrect
203information after the database environment was opened, if a different
204thread of control changed the database environment values.  Fix bugs
205where database environment getter/setter functions could race with other
206threads of control. [#9724]</li>
207            <li>Change the DbEnv.set_lk_detect method to match the DbEnv.open
208semantics. That is, DbEnv.set_lk_detect may be called after the database
209environment is opened, allowing applications to configure automatic
210deadlock detection if it has not yet been configured. [#9724]</li>
211            <li>Fix cursor locks for environments opened without DB_THREAD so that
212they use the same locker ID. This eliminates many common cases of
213application self-deadlock, particularly in CDS.  [#9742]</li>
214            <li>Fix a bug in DB-&gt;get_env() in the C API where it could return an
215error when it should only return the DB_ENV handle.  C++ and Java are
216unchanged. [#9828]</li>
217            <li>Fix a bug where we only need to initialize the cryptographic memory
218	region when MPOOL, Log or Transactions have been configured.  [#9872]</li>
219            <li>Change private database environments at process startup to only
220allocate the heap memory required at any particular time, rather than
221always allocating the maximum amount of heap memory configured for the
222environment.  [#9889]</li>
223            <li>Add a method to create nonexistent intermediate directories when
224	opening database files. [#9898]</li>
225            <li>Add support for in-memory logging within database environments.
226	[#9927]</li>
227            <li>Change Berkeley DB so configuring a database environment for
228automatic log file removal affects all threads in the environment, not
229just the DbEnv handle in which the configuration call is made.  [#9947]</li>
230            <li>Change the signature of the error callback passed to the
231DB_ENV-&gt;set_errcall and DB-&gt;set_errcall methods to add a DB_ENV handle,
232to provide database environment context for the callback function.
233[#10025]</li>
234            <li>Fix a race condition between DB-&gt;close and DB-&gt;{remove,rename} on
235filesystems that don't allow file operations on open files (such as
236Windows).  [#10180]</li>
237            <li>Add a DB_DSYNC_LOG flag to the DbEnv::set_flags method, which
238configures O_DSYNC on POSIX systems and FILE_FLAG_WRITE_THROUGH on Win32
239systems.  This offers significantly better performance for some
240applications on certain Solaris/filesystem combinations.  [#10205]</li>
241            <li>Fix a bug where calling the DB or DBEnv database remove or rename
242methods could cause a transaction checkpoint or cache flush to fail.
243[#10286]</li>
244            <li>Change file operations not to flush a file if it hasn't been written.
245	[#10537]</li>
246            <li>Remove 4GB restriction on region sizes on 64 bit machines. [#10668]</li>
247            <li>Simplify the signature of substitute system calls for ftruncate and
248	seek. [#10668]</li>
249            <li>Change Berkeley DB so that opening an environment without specifying
250a home directory will cause the DB_CONFIG file in the current directory
251to be read, if it exists. [#11424]</li>
252            <li>Fix a bug that caused a core dump if DB handles without associated
253	database environments were used for database verification. [#11649]</li>
254            <li>Fix Windows mutexes shared between processes run as different users.
255	[#11985]</li>
256            <li>Fix Windows mutexes for some SMP machines. [#12417]</li>
257          </ol>
258        </div>
259      </div>
260      <div class="sect2" lang="en" xml:lang="en">
261        <div class="titlepage">
262          <div>
263            <div>
264              <h3 class="title"><a id="id1649087"></a>Concurrent Data Store Changes:</h3>
265            </div>
266          </div>
267        </div>
268        <div class="orderedlist">
269          <ol type="1">
270            <li>Fix cursor locks for environments opened without DB_THREAD so that
271they use the same locker ID. This eliminates many common cases of
272application self-deadlock, particularly in CDS.  [#9742]</li>
273          </ol>
274        </div>
275      </div>
276      <div class="sect2" lang="en" xml:lang="en">
277        <div class="titlepage">
278          <div>
279            <div>
280              <h3 class="title"><a id="id1649052"></a>General Access Method Changes:</h3>
281            </div>
282          </div>
283        </div>
284        <div class="orderedlist">
285          <ol type="1">
286            <li>Fix a bug where Berkeley DB log cursors would close and reopen the
287	underlying log file each time the log file was read. [#8934]</li>
288            <li>Improve performance of DB-&gt;open() for existing subdatabases
289	maintained within the same database file.  [#9156]</li>
290            <li>Add a new error, DB_BUFFER_SMALL, to differentiate from ENOMEM. The
291new error indicates that the supplied DBT is too small. ENOMEM is now
292always fatal.  [#9314]</li>
293            <li>Fix a bug when an update through a secondary index is deadlocked it
294is possible for the deadlock to be ignored, resulting in a partial
295update to the data. [#9492]</li>
296            <li>Fix a bug where a record could get inserted into the wrong database
297when a page was deallocated from one subdatabase and reallocated to
298another subdatabase maintained within the same database file.  [#9510]</li>
299            <li>Enhance file allocation so that if the operating system supports
300decreasing the size of a file and the last page of the file is freed,
301it will be returned to the operating system.  [#9620]</li>
302            <li>Fix a bug where DB_RUNRECOVERY could be returned if there was no
303more disk space while aborting the allocation of a new page in a
304database.  [#9643]</li>
305            <li>Fix a bug where the cryptographic code could memcpy too many bytes.
306	[#9648]</li>
307            <li>Fix a bug with DB-&gt;join() cursors that resulted in a memory leak and
308	incomplete results.  [#9763]</li>
309            <li>Disallow cursor delete, followed a cursor put of the current item
310	across all access methods.  [#9900]</li>
311            <li>Fix a bug where recovery of operations on unnamed databases that
312	were never closed, could fail.  [#10118]</li>
313            <li>Fix a bug where DB-&gt;truncate of a database with overflow records
314	that spanned more than one page would loop.  [#10151]</li>
315            <li>Improve performance in the database open/close path.  [#10266]</li>
316            <li>Fix a bug that restricted the number of temporary files that could
317	be created to 127.  [#10415]</li>
318            <li>Fix a bug which could cause a Too many files error when trying to
319create temporary files. Limit the number of temporary file creation
320retries. [#10760] [#10773]</li>
321            <li>Fix a memory leak bug with Sequence Numbers. [#11589]</li>
322            <li>Fix a bug on Windows platforms that prevents database files from
323	growing to over 2GB. [#11839]</li>
324            <li>Fix a platform independence bug with sequence numbers. Existing
325sequence numbers will be automatically upgraded upon next access.
326[#12202]</li>
327            <li>Fix a race between truncate and read/write operations on Windows
328	platforms that could cause corrupt database files. [#12598]</li>
329          </ol>
330        </div>
331      </div>
332      <div class="sect2" lang="en" xml:lang="en">
333        <div class="titlepage">
334          <div>
335            <div>
336              <h3 class="title"><a id="id1649244"></a>Btree Access Method Changes:</h3>
337            </div>
338          </div>
339        </div>
340        <div class="orderedlist">
341          <ol type="1">
342            <li>Fix a bug where a record could get placed on the wrong page when two
343threads are simultaneously trying to split a four level (or greater)
344Btree.  [#9542]</li>
345            <li>Fix a bug where calling DB-&gt;truncate() on a Btree which has
346duplicate keys that overflow the leaf page would not properly free the
347overflow pages and possibly loop.  [#10666]</li>
348          </ol>
349        </div>
350      </div>
351      <div class="sect2" lang="en" xml:lang="en">
352        <div class="titlepage">
353          <div>
354            <div>
355              <h3 class="title"><a id="id1648961"></a>Hash Access Method Changes:</h3>
356            </div>
357          </div>
358        </div>
359        <div class="orderedlist">
360          <ol type="1">
361            <li>Fix a bug where a delete to a HASH database with off page duplicates
362could fail to have the proper lock when deleting an off page duplicate
363tree. [#9585]</li>
364            <li>Fix a bug where a dirty reader using a HASH database would leave a
365	lock on the meta page.  [#10105]</li>
366            <li>Fix a bug where a DB-&gt;del() on a HASH database supporting dirty
367reads could fail to upgrade a WWRITE lock to a WRITE lock when deleting
368an off page duplicate.  [#10649]</li>
369          </ol>
370        </div>
371      </div>
372      <div class="sect2" lang="en" xml:lang="en">
373        <div class="titlepage">
374          <div>
375            <div>
376              <h3 class="title"><a id="id1649057"></a>Queue Access Method Changes:</h3>
377            </div>
378          </div>
379        </div>
380        <div class="orderedlist">
381          <ol type="1">
382            <li>Fix a bug where DB_CONSUME_WAIT may loop rather than wait for a new
383record to enter the queue, if the queue gets into a state where there
384are only deleted records between the head and the end of queue. [#9215]</li>
385            <li>Fix a bug where a Queue extent file could be closed when it was
386empty, even if a thread was still accessing a page from that file.
387[#9291]</li>
388            <li>Fix a bug where DBC-&gt;c_put(key, data, DB_CURRENT) where inserting a
389new record after the current record had been deleted was returning
390DB_KEYEMPTY.  [#9314]</li>
391            <li>Fix a bug where a Queue extent file could be reported as not found
392if a race condition was encountered between removing the file and
393writing out a stale buffer.  [#9462]</li>
394            <li>Fix a bug where the Queue access method might fail to release a
395	record lock when running without transactions.  [#9487]</li>
396            <li>Add DB_INORDER flag for Queue databases to guarantee FIFO (First In,
397	First Out) ordering when using DB_CONSUME or DB_CONSUME_WAIT.  [#9689]</li>
398            <li>Fix a bug where remove and rename calls could fail with a
399	"Permission denied" error.  [#9775]</li>
400            <li>Fix a bug where aborting a transaction that opened and renamed a
401queue database using extents could leave some of the extent files with
402the wrong name on Windows.  [#9781]</li>
403            <li>Fix a bug where a db_dump of a queue database could return an error
404at the end of the queue if the head or tail of the queue is the first
405record on a page.  [#10215]</li>
406            <li>Fix a race condition which would leave a Queue extent file open
407until the database handle was closed, preventing it from being removed.
408[#10591]</li>
409            <li>Fix a bug where a deadlock of a put on a database handle with dirty
410	readers could generate a lock downgrade error.  [#10678]</li>
411            <li>Fix a bug which caused DB_SET_RANGE and DB_GET_BOTH_RANGE to not
412	return the next record when an exact match was not found. [#10860]</li>
413          </ol>
414        </div>
415      </div>
416      <div class="sect2" lang="en" xml:lang="en">
417        <div class="titlepage">
418          <div>
419            <div>
420              <h3 class="title"><a id="id1648990"></a>Recno Access Method Changes</h3>
421            </div>
422          </div>
423        </div>
424        <div class="orderedlist">
425          <ol type="1">
426            <li>Fix a bug where the key/data counts returned by the Db-&gt;stat method
427	for Recno databases did not match the documentation.            [#8639]</li>
428            <li>Fix a bug where DBC-&gt;c_put(key, data, DB_CURRENT) where inserting a
429new record after the current record had been deleted was returning
430DB_KEYEMPTY.  [#9314].</li>
431          </ol>
432        </div>
433      </div>
434      <div class="sect2" lang="en" xml:lang="en">
435        <div class="titlepage">
436          <div>
437            <div>
438              <h3 class="title"><a id="id1648762"></a>C++-specific API Changes:</h3>
439            </div>
440          </div>
441        </div>
442        <div class="orderedlist">
443          <ol type="1">
444            <li>Change DbException to extend std::exception, making it possible for
445	applications to catch all exceptions in one place.  [#10022]</li>
446            <li>Fix a bug where errors during transaction destructors (commit,
447	abort) could cause an invalid memory access.  [#10302]</li>
448            <li>Fix a bug that could lead to a read through an uninitialized pointer
449	when a DbLockNotGrantedException is thrown.  [#10470]</li>
450            <li>Fix a bug in the C++ DbEnv::rep_elect method API where the arguments
451were swapped, leading to an "Invalid Argument" return when that method
452is called. [#11906]</li>
453          </ol>
454        </div>
455      </div>
456      <div class="sect2" lang="en" xml:lang="en">
457        <div class="titlepage">
458          <div>
459            <div>
460              <h3 class="title"><a id="id1649308"></a>Java-specific API Changes:</h3>
461            </div>
462          </div>
463        </div>
464        <div class="orderedlist">
465          <ol type="1">
466            <li>Fix a bug where the Java API did not respect non-zero return values
467	from secondaryKeyCreate, including DB_DONOTINDEX. [#9474]</li>
468            <li>Fix a bug where a self-deadlock occurred with a non-transactional
469class catalog database used in a transactional environment.  The bug
470only occurred when the collections API was not used for starting
471transactions. [#9521]</li>
472            <li>Improve Javadoc for the Java API.  [#9614]</li>
473            <li>Improve memory management and performance when large byte arrays are
474	being passed to DB methods.  [#9801]</li>
475            <li>Improve performance of accessing statistics information from the
476	Java API.  [#9835]</li>
477            <li>Allow Java application to run without DB_THREAD so they can be used
478	as RPC clients.  [#10097]</li>
479            <li>Fix a bug where an uninitialized pointer is dereferenced for
480	logArchive(Db.DB_ARCH_REMOVE). [#10225]</li>
481            <li>Fix a bug in the Collections API where a deadlock exception could
482	leave a cursor open.  [#10516]</li>
483            <li>Fix the replication callback in the Java API so that the parameter
484	names match the C API.  [#10550]</li>
485            <li>Add get methods to the Java statistics classes.  [#10807]</li>
486            <li>Fix bugs in the Java API handling of null home directories and
487	environments opened without a memory pool. [#11424]</li>
488            <li>Fix the Java API in the non-crypto package. [#11752]</li>
489            <li>Fix a bug that would cause corruption of error prefix strings.
490	[#11967]</li>
491            <li>Fix handling of LSNs in the Java API. [#12223]</li>
492            <li>Dont throw a NullPointerException if the list of files returned by
493	log_archive is empty. [#12383]</li>
494          </ol>
495        </div>
496      </div>
497      <div class="sect2" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id1649537"></a>Tcl-specific API Changes:</h3></div></div></div>
498
499None.
500</div>
501      <div class="sect2" lang="en" xml:lang="en">
502        <div class="titlepage">
503          <div>
504            <div>
505              <h3 class="title"><a id="id1649560"></a>RPC-specific Client/Server Changes:</h3>
506            </div>
507          </div>
508        </div>
509        <div class="orderedlist">
510          <ol type="1">
511            <li>Add support for 64-bit and ANSI C implementations of the RPCGEN
512	utility.  [#9548]</li>
513            <li>Fix a small memory leak in RPC clients.  [#9595]</li>
514            <li>Fix a bug in the RPC server to avoid self-deadlock by always setting
515	DB_TXN_NOWAIT. [#10181]</li>
516            <li>Fix a bug in the RPC server so that if it times out an environment,
517it first closes all the Berkeley DB handles in that environment.
518[#10623]</li>
519          </ol>
520        </div>
521      </div>
522      <div class="sect2" lang="en" xml:lang="en">
523        <div class="titlepage">
524          <div>
525            <div>
526              <h3 class="title"><a id="id1649614"></a>Replication Changes:</h3>
527            </div>
528          </div>
529        </div>
530        <div class="orderedlist">
531          <ol type="1">
532            <li>Add an Environment ID to distinguish between clients from different
533	replication groups.  [#7786]</li>
534            <li>Add number of votes required and flags parameters to
535	DB_ENV-&gt;rep_elect() method. [#7812]</li>
536            <li>Fix a bug where a client's env_openfiles pass could start with the
537wrong LSN. This could result in very long initial sync-up times for
538clients joining a replication group. [#8635]</li>
539            <li>Add election generation information to replication to support Paxos
540	compliance. [#9068]</li>
541            <li>Add rep019 to test running normal recovery on clients to make sure
542	we synch to the correct LSNs. [#9151]</li>
543            <li>Remove support for logs-only replication clients.  Use of the
544DB_REP_LOGSONLY flag to the DB_ENV-&gt;rep_start() method should be
545replaced with the DB_REP_CLIENT flag. [#9331]</li>
546            <li>Fix a bug where replication clients fail to lock all the necessary
547pages when applying updates when there are more than one database in the
548transaction.  [#9569]</li>
549            <li>Fix a bug in replication elections where when elections are called
550	by multiple threads the wrong master could get elected.  [#9770]</li>
551            <li>Fix a bug where the master could get a DB_REP_OUTDATED error.
552	Instead send an OUTDATED message to the client.  [#9881]</li>
553            <li>Add support for automatic initialization of replication clients.
554	[#9927]</li>
555            <li>Modify replication timestamp so that non-replication client
556	applications can get a DB_REP_HANDLE_DEAD. [#9986]</li>
557            <li>Add a new DB_REP_STARTUPDONE return value for rep_process_message()
558and st_startup_done to rep_stat() to indicate when a client has finished
559syncing up to a master and is processing live messages.  [#10310]</li>
560            <li>Add _pp to secondary handles, add RPRINT, fix a deadlock. [#10429]</li>
561            <li>Fix a bug where an old client (and no master) that dropped the ALIVE
562	message would never update to the current generation.  [#10469]</li>
563            <li>Fix a bug where a message could get sent to a new client before
564NEWSITE has been returned to the application. Broadcast instead.
565[#10508]</li>
566            <li>Fix a crash when verbose replication messages are configured and a
567	NULL DB_LSN pointer is passed to rep_process_message. [#10508]</li>
568            <li>Add code to respect set_rep_limit in LOG_REQ processing. [#10716]</li>
569            <li>Fix a synchronization problem between replication recovery and
570	database open. [#10731]</li>
571            <li>Change elections to adjust timeout if egen changes while we are
572	waiting. [#10686]</li>
573            <li>Client perm messages now return ISPERM/NOTPERM instead of 0.
574	[#10855] [#10905]</li>
575            <li>Fix a race condition during rep_start when a role change occurs. Fix
576	memory leaks. [#11030]</li>
577            <li>Fix problems with duplicate records.  A failure will no longer occur
578	if the records are old records (LOG_MORE) and archived. [#11090]</li>
579            <li>Fix a bug where the replication temporary database would grow during
580	automatic client initialization. [#11090]</li>
581            <li>Add throttling to PAGE_REQ. [#11130]</li>
582            <li>Remove optimization-causing problems with racing threads in
583	rep_verify_match. [#11208]</li>
584            <li>Fix memory leaks. [#11239]</li>
585            <li>Fix an initialization bug when High Availability configurations are
586combined with private database environments, which can cause
587intermittent failures. [#11795]</li>
588            <li>Fix a bug in the C++ DbEnv::rep_elect method API where the arguments
589were swapped, leading to an "Invalid Argument" return when that method
590is called. [#11906]</li>
591          </ol>
592        </div>
593      </div>
594      <div class="sect2" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id1649598"></a>XA Resource Manager Changes:</h3></div></div></div>
595
596None.
597</div>
598      <div class="sect2" lang="en" xml:lang="en">
599        <div class="titlepage">
600          <div>
601            <div>
602              <h3 class="title"><a id="id1649020"></a>Locking Subsystem Changes:</h3>
603            </div>
604          </div>
605        </div>
606        <div class="orderedlist">
607          <ol type="1">
608            <li>Fix a bug where a deadlock of an upgrade from a dirty read to a
609	write lock during an aborted transaction, may not be detected.  [#7143]</li>
610            <li>Add support for Degree 2 isolation. [#8689]</li>
611            <li>Change the system to return DB_LOCK_DEADLOCK if a transaction
612attempts to get new locks after it has been selected as the deadlock
613victim. [#9111]</li>
614            <li>Fix a bug where when configured to support dirty reads, a writer may
615not downgrade a write lock as soon as possible, potentially blocking
616dirty readers. [#9197]</li>
617            <li>Change the test-and-set mutex implementation to avoid interlocked
618instructions when we know the instruction is unlikely to succeed.
619[#9204]</li>
620            <li>Fix a bug where a thread supporting dirty readers can get blocked
621while trying to get a write lock. It will allocate a new lock rather
622than using an existing WAS_WRITE lock when it becomes unblocked, causing
623the application to hang.  [#10093]</li>
624            <li>The deadlock detector will now note that a parent transaction should
625	be considered in abort if one of its children is. [#10394]</li>
626            <li>Remove a deadlock where database closes could deadlock with page
627	acquisition. [#10726]</li>
628            <li>Fix a bug where a dirty reader could read an overflow page that was
629	about to be deleted. [#10979]</li>
630            <li>Fix a bug that failed to downgrade existing write locks during a
631	btree page split when supporting dirty reads. [#10983]</li>
632            <li>Fix a bug that would fail to upgrade a write lock when moving a
633	cursor off a previously deleted record. [#11042]</li>
634          </ol>
635        </div>
636      </div>
637      <div class="sect2" lang="en" xml:lang="en">
638        <div class="titlepage">
639          <div>
640            <div>
641              <h3 class="title"><a id="id1649766"></a>Logging Subsystem Changes:</h3>
642            </div>
643          </div>
644        </div>
645        <div class="orderedlist">
646          <ol type="1">
647            <li>Fix a bug where recovery could leave too many files open.  [#9452]</li>
648            <li>Fix a bug where aborting a transaction with a file open in it could
649	result in an unrecoverable log file. [#9636]</li>
650            <li>Fix a bug where recovery would not return a fatal error if the
651	transaction log was corrupted.  [#9841]</li>
652            <li>Fix a bug in recovery so that the final checkpoint no longer tries
653to flush the log. This will permit recovery to complete even if there
654is no disk space to grow the log file.  [#10204]</li>
655            <li>Improve performance of log flushes by pre-allocating log files and
656	using fdatasync() in preference to fsync(). [#10228]</li>
657            <li>Fix a bug where recovery of a page split after a non-transactional
658	update to the next page would fail to update the back pointer.  [#10421]</li>
659            <li>Fix a bug in log_archive() where __env_rep_enter() was called twice.
660	[#10577]</li>
661            <li>Fix a bug with in-memory logs that could cause a memory leak in the
662	log region. [#11505]</li>
663          </ol>
664        </div>
665      </div>
666      <div class="sect2" lang="en" xml:lang="en">
667        <div class="titlepage">
668          <div>
669            <div>
670              <h3 class="title"><a id="id1649841"></a>Memory Pool Subsystem Changes:</h3>
671            </div>
672          </div>
673        </div>
674        <div class="orderedlist">
675          <ol type="1">
676            <li>Fix a bug in the MPOOLFILE file_written flag value so that
677checkpoint doesn't repeatedly open, flush and sync files in the cache
678for which there are no active application handles. [#9529]</li>
679          </ol>
680        </div>
681      </div>
682      <div class="sect2" lang="en" xml:lang="en">
683        <div class="titlepage">
684          <div>
685            <div>
686              <h3 class="title"><a id="id1649888"></a>Transaction Subsystem Changes:</h3>
687            </div>
688          </div>
689        </div>
690        <div class="orderedlist">
691          <ol type="1">
692            <li>Fix a bug where the same transaction ID could get allocated twice
693if you wrapped the transaction ID space twice and then had a very old
694transaction. [#9036]</li>
695            <li>Fix a bug where a transaction abort that contained a page allocation
696	could loop if the filesystem was full.  [#9461]</li>
697            <li>Fix implementation of DB-&gt;get_transactional() to match
698documentation: there is no possibility of error return, only 0 or 1.
699[#9526]</li>
700            <li>Fix a bug where re-setting any of the DB_TXN_NOSYNC,
701DB_TXN_NOT_DURABLE and DB_TXN_WRITE_NOSYNC flags could fail to clear
702previous state, potentially leading to incorrect transactional behavior
703in the application. [#9947]</li>
704            <li>Add a feature to configure the maximum number of files that a
705	checkpoint will hold open.  [#10026]</li>
706            <li>An aborting transaction will no longer generate an undetected
707	deadlock. [#10394]</li>
708            <li>Fix a bug that prevented a child transaction from accessing a
709	database handle that was opened by its parent transaction.  [#10783]</li>
710            <li>Fix a bug where a checkpoint or a delayed write in another process
711could raise an EINVAL error if the database had been opened with the
712DB_TXN_NOT_DURABLE flag.  [#10824]</li>
713            <li>Fix private transactional environments on 64-bit systems. [#11983]</li>
714          </ol>
715        </div>
716      </div>
717      <div class="sect2" lang="en" xml:lang="en">
718        <div class="titlepage">
719          <div>
720            <div>
721              <h3 class="title"><a id="id1649904"></a>Utility Changes:</h3>
722            </div>
723          </div>
724        </div>
725        <div class="orderedlist">
726          <ol type="1">
727            <li>Add debugging and performance tuning information to db_stat.  Add
728new Berkeley DB handle methods to output debugging and performance
729tuning information to a C library FILE handle (C and C++ APIs only).
730[#9204]</li>
731            <li>Fix a bug where db_stat could drop core if DB-&gt;open fails and no
732	subdatabase was specified.  [#9273]</li>
733            <li>Add command-line arguments to the db_printlog utility to restrict
734	the range of log file records that are displayed. [#9307]</li>
735            <li>Fix a bug in the locking statistics where current locks included
736	failed lock requests.  [#9314]</li>
737            <li>Fix a bug where db_archive would remove all log files when
738	--enable-diagnostic and DB_NOTDURABLE were both specified.  [#9459]</li>
739            <li>Fix a bug where db_dump with the -r flag would output extra copies
740	of the subdatabase information.  [#9808]</li>
741            <li>Fix a bug in db_archive that would cause log file corruption if the
742	application had configured the environment with DB_PRIVATE.  [#9841]</li>
743            <li>Add support in db_load for resetting database LSNs and file IDs
744	without having to reload the database.  [#9916]</li>
745            <li>Change the DB-&gt;stat() method to take a transaction handle as an
746argument, allowing DB-&gt;stat() to be called from within a transaction.
747[#9920]</li>
748            <li>Fix a bug in db_printlog where only the first filewould be displayed
749	for in-memory logs. [#11505]</li>
750            <li>Fix a bug that prevented database salvage from working in Berkeley
751	DB 4.3.21. [#11649]</li>
752            <li>Fix a bug in db_load which made it impossible to specify more than
753	a single option on the command line. [#11676]</li>
754          </ol>
755        </div>
756      </div>
757      <div class="sect2" lang="en" xml:lang="en">
758        <div class="titlepage">
759          <div>
760            <div>
761              <h3 class="title"><a id="id1649954"></a>Configuration, Documentation, Portability and Build Changes:</h3>
762            </div>
763          </div>
764        </div>
765        <div class="orderedlist">
766          <ol type="1">
767            <li>Add pread and pwrite to the list of system calls applications can
768	replace at run-time.  [#8954]</li>
769            <li>Add support for UTF-8 encoding of filenames on Windows. [#9122]</li>
770            <li>Remove C++ dependency on snprintf.  Compilers on HPUX 10.20 are
771	missing header file support for snprintf().  [#9284]</li>
772            <li>Change Berkeley DB to not use the open system call flag O_DIRECT,
773	unless DB configured using --enable-o_direct.  [#9298]</li>
774            <li>Fix several problems with mutex alignment on HP/UX  10.20.  [#9404]</li>
775            <li>Fix a memory leak when HAVE_MUTEX_SYSTEM_RESOURCES is enabled.
776	[#9546]</li>
777            <li>Fix a bug in the sec002.tcl test for binary data. [#9626]</li>
778            <li>Fix a bug where filesystem blocks were not being zeroed out in the
779	On-Time embedded Windows OS.   [#9640]</li>
780            <li>Fix build problems with the Java API in Visual Studio .NET 2003.
781	[#9701]</li>
782            <li>Add support for the gcc compiler on the Opteron platform.  [#9725]</li>
783            <li>Add support for the small_footprint build option for VxWorks.
784	[#9820]</li>
785            <li>Add support for linking of DLLs with MinGW.  [#9957]</li>
786            <li>Remove the make target which builds the RPM package from the
787	Berkeley DB distribution.  [#10233]</li>
788            <li>Add a C++/XML example for ex_repquote.  [#10380]</li>
789            <li>Fix a bug to link with lrt only if detected by configure (Mac OS X
790	issue).  [#10418]</li>
791            <li>Fix a bug and link Java and Tcl shared libraries with lpthread if
792	required, for mutexes.  [#10418]</li>
793            <li>Add support for building Berkeley DB on the HP NonStop OSS (Tandem)
794	platform. [10483]</li>
795            <li>Change Berkeley DB to ignore EAGAIN from system calls. This fixed
796	problems on NFS mounted databases.  [#10531]</li>
797            <li>Remove a line with bt_compare and bt_prefix from the db_dump
798	recovery test suite, which can cause failures on OpenBSD.  [#10567]</li>
799            <li>Fix a conflict with the lock_init for building Berkeley DB on
800	Cygwin.  [#10582]</li>
801            <li>Add Unicode support for the Berkeley DB Windows API. [#10598]</li>
802            <li>Add support for 64-bit builds on Windows.  [#10664]</li>
803            <li>Libtool version is now 1.5.8. [#10950]</li>
804            <li>Remove mt compilation flag for HP-UX 11.0. [#11427]</li>
805            <li>Fix a bug to link with lrt on Solaris to support fdatasync. [#11437]</li>
806          </ol>
807        </div>
808      </div>
809    </div>
810    <div class="navfooter">
811      <hr />
812      <table width="100%" summary="Navigation footer">
813        <tr>
814          <td width="40%" align="left"><a accesskey="p" href="upgrade_4_3_disk.html">Prev</a>��</td>
815          <td width="20%" align="center">
816            <a accesskey="u" href="upgrade_4_3_toc.html">Up</a>
817          </td>
818          <td width="40%" align="right">��<a accesskey="n" href="upgrade_4_4_toc.html">Next</a></td>
819        </tr>
820        <tr>
821          <td width="40%" align="left" valign="top">Release 4.3: Upgrade Requirements��</td>
822          <td width="20%" align="center">
823            <a accesskey="h" href="index.html">Home</a>
824          </td>
825          <td width="40%" align="right" valign="top">��Chapter��41.��Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4</td>
826        </tr>
827      </table>
828    </div>
829  </body>
830</html>
831