Debian Codegraph @

docs/installation/changelog_5_0.html

raw symbols SCIP
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 11g Release 2 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 Installation and Build Guide" />
10 <link rel="up" href="upgrade_11gr2_toc.html" title="Chapter 12.  Upgrading Berkeley DB 4.8 applications to Berkeley DB 11.2.5.0" />
11 <link rel="prev" href="build_unix_stacksize.html" title="Changing Stack Size" />
12 <link rel="next" href="upgrade_4_8_toc.html" title="Chapter 13. Upgrading Berkeley DB 4.7 applications to Berkeley DB 4.8" />
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">Berkeley DB 11g Release 2 Change Log</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="build_unix_stacksize.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 Upgrading Berkeley DB 4.8 applications to Berkeley DB 11.2.5.0
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_8_toc.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="changelog_5_0"></a>Berkeley DB 11g Release 2 Change Log</h2>
38 </div>
39 </div>
40 </div>
41 <div class="toc">
42 <dl>
43 <dt>
44 <span class="sect2">
45 <a href="changelog_5_0.html#idp1125968">Changes between 11.2.5.0.26 and 11.2.5.0.32</a>
46 </span>
47 </dt>
48 <dt>
49 <span class="sect2">
50 <a href="changelog_5_0.html#idp1126872">Changes between 11.2.5.0.21 and 11.2.5.0.26</a>
51 </span>
52 </dt>
53 <dt>
54 <span class="sect2">
55 <a href="changelog_5_0.html#idp1125192">Changes between 4.8 and 11.2.5.0.21</a>
56 </span>
57 </dt>
58 <dt>
59 <span class="sect2">
60 <a href="changelog_5_0.html#idp1131672">Known Bugs</a>
61 </span>
62 </dt>
63 </dl>
64 </div>
65 <div class="sect2" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h3 class="title"><a id="idp1125968"></a>Changes between 11.2.5.0.26 and 11.2.5.0.32</h3>
70 </div>
71 </div>
72 </div>
73 <div class="orderedlist">
74 <ol type="1">
75 <li>
76 <p>
77 Added Visual Studio 2010 support. Users can find Visual Studio 2010 solutions and projects on build_windows. [#18889]
78 </p>
79 </li>
80 <li>
81 <p>
82 Fixed a leak of log file ids when a database is closed before the end of a transaction that references it. [#15957]
83 </p>
84 </li>
85 <li>
86 <p>
87 Fixed a race condition that was causing an "unable to allocate space from the buffer cache" error. The error can only be triggered when multiple mpool regions are used and there is a periodic gathering and clearing of statistics. This also fixes a second bug where if you compile without statistics and explicitly set the mpool default pagesize, other environment handles to that environment would not see the correct mpool default pagesize. [#18386]
88 </p>
89 </li>
90 <li>
91 <p>
92 Fix failure to flush pages to disk. [#18760]
93 </p>
94 </li>
95 <li>
96 <p>
97 Fix a general I/O problem on Windows where system doesn't always return ENOENT when file is missing. [#18762]
98 </p>
99 </li>
100 <li>
101 <p>
102 Fixed locking bugs: [#18789]
103 </p>
104 <div class="itemizedlist">
105 <ul type="disc">
106 <li>
107 Db-&gt;compact of BTREE with MVCC could return an unpinned page.
108 </li>
109 <li>
110 RECNO would fail to lock the next page when splitting a leaf page.
111 </li>
112 </ul>
113 </div>
114 </li>
115 <li>
116 <p>
117 Don't await ack if message not sent due to queue limit exceeded. [#18682]
118 </p>
119 </li>
120 <li>
121 <p>
122 Fixed a bug that could cause data to not be returned in a HASH database that was one of multiple databases in a file and it was opened prior to running DB-&gt;compact on that database in another thread of control [#18824]
123 </p>
124 </li>
125 <li>
126 <p>
127 Return HANDLE_DEAD on cursor creation that names a specific txn after client callback. [#18862]
128 </p>
129 </li>
130 <li>
131 <p>
132 Remove parting_shot rep_start(CLIENT) in election thread because it can occasionally conflict with rep_start(MASTER) in another thread. [#18946]
133 </p>
134 </li>
135 <li>
136 <p>
137 Fixed a bug that would cause handle locks to be left referencing the wrong metadata page if DB-&gt;compact moved the metadata page of a sub-database. [#18944]
138 </p>
139 </li>
140 <li>
141 <p>
142 Fixed a bug that might cause an update to a HASH database to fail with an "unpinned page returned" error if it first gets an I/O error while logging. [#18985]
143 </p>
144 </li>
145 <li>
146 <p>
147 Fixed a bug that failed to dirty a page when DB-&gt;compact moved records within a hash bucket [#18994]
148 </p>
149 </li>
150 <li>
151 <p>
152 Fixed a bug in page allocation where if a non-transactional update was being done, then we release the metadata page lock too early possibly leading to the corruption of the in memory page list used by DB-&gt;compact. [#19036]
153 </p>
154 </li>
155 <li>
156 <p>
157 A log write failure on a replication master will now cause a panic since the transaction may be committed on some clients. [#19054]
158 </p>
159 </li>
160 <li>
161 <p>
162 Removed the possibility that checkpoints will overlap in the log, decreasing the time to recover [#19062]
163 </p>
164 </li>
165 <li>
166 <p>
167 Fixed a bug that could leave a hash bucket overflow page not linked to the bucket if the unlink of that page aborted. [#19001]
168 </p>
169 </li>
170 <li>
171 <p>
172 Fixed a bug that would leave the next page pointer of a hash bucket that was removed pointing to an invalid page. [#19004]
173 </p>
174 </li>
175 <li>
176 <p>
177 Fixed several bugs that could cause an update running with MVCC to get the wrong version of a page or improperly update the metadata last page number. [#19063]
178 </p>
179 </li>
180 <li>
181 <p>
182 Fixed a bug where an error during an update to a hash database with DB_NOOVERWRITE set could return DB_KEYEXIST rather than the correct error. [#19077]
183 </p>
184 </li>
185 <li>
186 <p>
187 Fixed a bug where an updater supporting DB_READ_UNCOMMITED might downgrade its lock too soon if there was an error during the update [#19155]
188 </p>
189 </li>
190 <li>
191 <p>
192 Fixed a bug that could cause the wrong page number to be on a root or metadata page if DB-&gt;compact moved the page and the operation was later rolled forward [#19167]
193 </p>
194 </li>
195 <li>
196 <p>
197 Fixed a bug that could cause the close of a secondary index database to fail if the transaction doing the open aborted [#19169]
198 </p>
199 </li>
200 <li>
201 <p>
202 The database open code will no longer log the open and close of the master database in a file when opening a sub database in that file [#19071]
203 </p>
204 </li>
205 </ol>
206 </div>
207 </div>
208 <div class="sect2" lang="en" xml:lang="en">
209 <div class="titlepage">
210 <div>
211 <div>
212 <h3 class="title"><a id="idp1126872"></a>Changes between 11.2.5.0.21 and 11.2.5.0.26</h3>
213 </div>
214 </div>
215 </div>
216 <div class="orderedlist">
217 <ol type="1">
218 <li>
219 <p>
220 Fixed a bug that might cause recovery to fail if processed part of the log that had previously been recovered and a database which was not present was opened in the log and not closed. [#18459]
221 </p>
222 </li>
223 <li>
224 <p>
225 Fixed a bug which could occur when using bulk transfer with Replication Manager. When closing a DB_ENV handle, any remaining bulk buffer contents are flushed, and Replication Manager could have tried to send the resulting messages even though its connections had already been closed, leading in rare circumstances to spurious EBADF error reports, or possibly even arbitrary memory corruption. [#18469]
226 </p>
227 </li>
228 <li>
229 <p>
230 Fixed a bug in C# HasMultiple() that this function always throws exceptions when there are multiple databases in a single db file. [#18483]
231 </p>
232 </li>
233 <li>
234 <p>
235 Fixed the '--enable-dbm' argument to configure. [#18497]
236 </p>
237 </li>
238 <li>
239 <p>
240 Fixed a bug in the Java API where populating a SecondaryDatabase on open could lead to an OutOfMemoryException. [#18529]
241 </p>
242 </li>
243 <li>
244 <p>
245 Fixed a bug where DB SQL reports "The database disk image is malformed" in "group by" operations. [#18531]
246 </p>
247 </li>
248 <li>
249 <p>
250 Fixed a bug that prevented the same process from reconnecting to the database when DB_REGISTER is being used. [#18535]
251 </p>
252 </li>
253 <li>
254 <p>
255 Fix a race between opening and closing SQL databases from multiple threads that could lead to the error "DB_REGISTER limits processes to one open DB_ENV handle per environment". [#18538]
256 </p>
257 </li>
258 <li>
259 <p>
260 Fixed some bugs that could cause a panic or a DB_RUN_RECOVERY error if the sync of the transaction log failed. [#18588]
261 </p>
262 </li>
263 <li>
264 <p>
265 Fixed a bug which would occur when recovery checkpoint was not written because the cache ran out of space attempting to flush the mpool cache. The environment was recovered and all database where made available, but some databases were incorrectly closed. This would cause a subsequent recovery to fail on its backward pass with the error "PANIC: No such file or directory". [#18590]
266 </p>
267 </li>
268 <li>
269 <p>
270 Fixed a bug that segementation fault would occur if DB-&gt;set_partition_dirs was called before DB-&gt;set_partition. [#18591]
271 </p>
272 </li>
273 <li>
274 <p>
275 Fixed a bug that the error of "unknown path" would occur if putting duplicate records to duplicated sorted hash database with DB_OVERWRITE_DUP.[#18607]
276 </p>
277 </li>
278 <li>
279 <p>
280 Fixed a bug where DatabaseConfig.getUnsortedDuplicates() returned true when the datbase had been configured for sorted duplicates. [#18612]
281 </p>
282 </li>
283 <li>
284 <p>
285 Fixed a bug that could cause recovery to fail with the error "DB_LOGC-&gt;get: log record LSN %u/%u: checksum mismatch" if the last log file was nearly full and ended with a partially written log record which was smaller than a checkpoint record. It now erases the invalid partial record before switching to the new log file. [#18651]
286 </p>
287 </li>
288 <li>
289 <p>
290 Initialize DatabaseConfig.pageSize so that it can be queried from Java. [#18691]
291 </p>
292 </li>
293 <li>
294 <p>
295 Fixed a bug that might cause an aborting transaction to fail if it aborted while a DB-&gt;compact of the same HASH database was compacting the dynamic hash table [#18695]
296 </p>
297 </li>
298 </ol>
299 </div>
300 </div>
301 <div class="sect2" lang="en" xml:lang="en">
302 <div class="titlepage">
303 <div>
304 <div>
305 <h3 class="title"><a id="idp1125192"></a>Changes between 4.8 and 11.2.5.0.21</h3>
306 </div>
307 </div>
308 </div>
309 <div class="sect3" lang="en" xml:lang="en">
310 <div class="titlepage">
311 <div>
312 <div>
313 <h4 class="title"><a id="idp1131024"></a>Database or Log File On-Disk Format Changes</h4>
314 </div>
315 </div>
316 </div>
317 <div class="orderedlist">
318 <ol type="1">
319 <li>
320 <p>
321 The log file format changed in 11.2.5.0.21
322 </p>
323 </li>
324 </ol>
325 </div>
326 </div>
327 <div class="sect3" lang="en" xml:lang="en">
328 <div class="titlepage">
329 <div>
330 <div>
331 <h4 class="title"><a id="idp1125280"></a>New Features</h4>
332 </div>
333 </div>
334 </div>
335 <div class="orderedlist">
336 <ol type="1">
337 <li>
338 <p>
339 Replication Manager sites can specify one or more possible client-to-client peers. [#14776]
340 </p>
341 </li>
342 <li>
343 <p>
344 Added resource management feature in all Berkeley DB APIs to automatically manage cursor and database handles by closing them when they are not required, if they are not yet closed.[#16188]
345 </p>
346 </li>
347 <li>
348 <p>
349 Added a SQL interface to the Berkeley DB library. The interface is based on - and a drop-in-replacement for - the SQLite API. It can be accessed via a command line utility, a C API, or existing APIs built for SQLite. [#16809]
350 </p>
351 </li>
352 <li>
353 <p>
354 Added hash databases support to the DB-&gt;compact interface. [#16936]
355 </p>
356 </li>
357 <li>
358 <p>
359 Renamed the "db_sql" utility to "db_sql_codegen". This utility is not built by default. To build this utility, enter --enable-sql_codegen as an argument to configure. [#18265]
360 </p>
361 </li>
362 <li>
363 <p>
364 Added transactional support in db_sql_codegen utility. Specify TRANSACTIONAL or NONTRANSACTIONAL in hint comments in SQL statement, db_sql_codegen enable/disable transaction in generated code accordingly. [#17237]
365 </p>
366 </li>
367 <li>
368 <p>
369 Added the feature read-your-writes consistency that allows client application to check, or wait for a specific transaction to be replicated from the master before reading database. [#17323]
370 </p>
371 </li>
372 <li>
373 <p>
374 Added DB log verification feature, accessible via the API and a new utility. This feature can help debugging and analysis. [#17420]
375 </p>
376 </li>
377 <li>
378 <p>
379 Added support for applications to assign master/client role explicitly at any time. Replication Manager can now be configured not to initiate elections. [#17484]
380 </p>
381 </li>
382 <li>
383 <p>
384 Enhanced the DB-&gt;compact method so that it can reassign metadata and root pages from subdatabases to lower numbered pages while compacting a database file that contains multiple databases. This feature helps to free the higher numbered pages and truncate the file. [#17554]
385 </p>
386 </li>
387 <li>
388 <p>
389 Added system diagnostic messages that are ON by default. [#17561]
390 </p>
391 </li>
392 <li>
393 <p>
394 Added the feature to assign a priority level to transactions. When resolving a deadlock:
395 </p>
396 <div class="itemizedlist">
397 <ul type="disc">
398 <li>
399 if the transactions have differing priority, the lowest priority transaction is aborted
400 </li>
401 <li>
402 if all transactions have the same priority, the same poilcy that existed before priorities were introduced is used [#17604]
403 </li>
404 </ul>
405 </div>
406 </li>
407 <li>
408 <p>
409 Added a feature in which log_archive uses group-wide information for archiving purposes if Replication Manager is in use. [#17664]
410 </p>
411 </li>
412 <li>
413 <p>
414 Added a feature by which the Replication Manager application clients now automatically request any missing information, even when there is no master transaction activity. [#17665]
415 </p>
416 </li>
417 <li>
418 <p>
419 Added support for sharing logs across mixed-endian systems. [#18032]
420 </p>
421 </li>
422 <li>
423 <p>
424 Added an option to specify the first and last pages to the db_dump utility. You can do this by providing -F and -L flags to the db_dump -d option. [#18072]
425 </p>
426 </li>
427 <li>
428 <p>
429 Added Intel Performance Primitive (IPP) AES encryption support. [#18110]
430 </p>
431 </li>
432 <li>
433 <p>
434 Removed support for the configuration option --with-mutex=UNIX/fcntl as of version 4.8. If Berkeley DB was configured to use this type of mutex in an earlier release, switch to a different mutex type or contact Oracle for support. [#18361]
435 </p>
436 </li>
437 </ol>
438 </div>
439 </div>
440 <div class="sect3" lang="en" xml:lang="en">
441 <div class="titlepage">
442 <div>
443 <div>
444 <h4 class="title"><a id="idp1123520"></a>Database Environment Changes</h4>
445 </div>
446 </div>
447 </div>
448 <div class="orderedlist">
449 <ol type="1">
450 <li>
451 <p>
452 Fixed a bug to reflect the correct configuration of the logging subsystem when the DB_ENV-&gt;log_set_config method is called with the DB_LOG_ZERO flag in a situation where a DB_ENV handle is open and an environment exists. [#17532]
453 </p>
454 </li>
455 <li>
456 <p>
457 Fixed a bug to prevent memory leak caused when the environment is closed by the named in-memory database in a private database environment which has open named in-memory databases. [#17816]
458 </p>
459 </li>
460 <li>
461 <p>
462 Fixd a race condition in an internal directory-scanning function that returns the ENOENT ("No such file or directory") error, if a file is removed just before a call to stat() or its eqivalent. [#17850]
463 </p>
464 </li>
465 </ol>
466 </div>
467 </div>
468 <div class="sect3" lang="en" xml:lang="en">
469 <div class="titlepage">
470 <div>
471 <div>
472 <h4 class="title"><a id="idp1154272"></a>Access Method Changes</h4>
473 </div>
474 </div>
475 </div>
476 <div class="orderedlist">
477 <ol type="1">
478 <li>
479 <p>
480 Fixed a bug to prevent a page in the hash database from carrying the wrong header information when a group allocation is rolled forward by recovery. [#15414]
481 </p>
482 </li>
483 <li>
484 <p>
485 Improved the sort function for bulk put operations. [#17440]
486 </p>
487 </li>
488 <li>
489 <p>
490 Fixed a bug in the DB-&gt;compact method to ensure locking of leaf pages when merging higher level interior nodes or when freeing interior nodes when descending to find a non-zero length key. [#17485][#16466]
491 </p>
492 </li>
493 <li>
494 <p>
495 Fixed a bug to prevent a trap if a cursor is opened or closed when another thread is adjusting cursors due to an update in the same database. [#17602]
496 </p>
497 </li>
498 <li>
499 <p>
500 Fixed a bug that incorrectly lead to the error message "library build did not include support for the Hash access method" [#17672]
501 </p>
502 </li>
503 <li>
504 <p>
505 Fixed a bug to ensure that the DB-&gt;exists method accepts the DB_AUTO_COMMIT flag. [#17687]
506 </p>
507 </li>
508 <li>
509 <p>
510 In the past, removing a database from a multi-database file that was opened in an environment always caused dirty pages in the file to be flushed from the cache. In this release, there is no implicit flush as part of a DB-&gt;remove for handles opened in an environment. Applications that expect the database file to be flushed will need to add an explicit flush. [#17775]
511 </p>
512 </li>
513 <li>
514 <p>
515 Fixed a bug so that the code does not loop if a DB-&gt;compact operation processed a 3 or more level non-sorted off page duplicate tree. [#17831]
516 </p>
517 </li>
518 <li>
519 <p>
520 Fixed a bug that could leave pages pinned in the cache if an allocation failed during a DB-&gt;compact operation. [#17845]
521 </p>
522 </li>
523 <li>
524 <p>
525 Fixed a bug to ensure sequences are closed when an EntityStore is closed. [#17951]
526 </p>
527 </li>
528 <li>
529 <p>
530 Fixed a bug that prevented retrieval of a non-duplicate record with DB_GET_BOTH_RANGE in hash sorted duplicate db. In a database configured with sorted duplicate support, when the DBcursor-&gt;get method is passed the DB_GET_BOTH_RANGE flag, the data item should be retrieved that is the smallest value greater than or equal to the value provided by the data parameter (as determined by the comparison function). [#17997]
531 </p>
532 </li>
533 <li>
534 <p>
535 Fixed a bug that causes the wrong file to be removed if multiple cascading renames are done in the same transaction. [#18069]
536 </p>
537 </li>
538 <li>
539 <p>
540 Fixed a bug to prevent the DB-&gt;compact method specified with the DB_AUTO_COMMIT flag from acquiring too many locks. [#18072]
541 </p>
542 </li>
543 <li>
544 <p>
545 Fixed a bug that might cause DB-&gt;compact on a DB_BTREE database to get a spurious read lock on the metadata page. If the database was opened non-transactionally the lock would get left behind. [#18257]
546 </p>
547 </li>
548 <li>
549 <p>
550 Fixed a bug that could lead to btree structure corruption if the DB-&gt;compact method ran out of locks [#18361]
551 </p>
552 </li>
553 <li>
554 <p>
555 Fixed a bug that would generate an error if a non-BDB file was used to create a database and the DB_TRUNCATE flag was specified. [#18373]
556 </p>
557 </li>
558 <li>
559 <p>
560 Fixed a bug that might cause a trap reading unitialized memory when backing out a merge of a duplicate tree leaf page during DB-&gt;compact. [#18461]
561 </p>
562 </li>
563 </ol>
564 </div>
565 </div>
566 <div class="sect3" lang="en" xml:lang="en">
567 <div class="titlepage">
568 <div>
569 <div>
570 <h4 class="title"><a id="idp1164792"></a>Locking Subsystem Changes</h4>
571 </div>
572 </div>
573 </div>
574 <div class="orderedlist">
575 <ol type="1">
576 <li>
577 <p>
578 Fixed a bug to ensure deadlock detection works even when there are blocked transactions, configured with and without timeouts. [#17555]
579 </p>
580 </li>
581 <li>
582 <p>
583 Fixed a bug to ensure a call to the DB-&gt;key_range method from outside a transaction does not lock pages. [#17930]
584 </p>
585 </li>
586 <li>
587 <p>
588 Fixed a bug that could cause a segmentation fault if the lock manager ran out of mutexes [#18428]
589 </p>
590 </li>
591 </ol>
592 </div>
593 </div>
594 <div class="sect3" lang="en" xml:lang="en">
595 <div class="titlepage">
596 <div>
597 <div>
598 <h4 class="title"><a id="idp1130592"></a>Logging Subsystem Changes</h4>
599 </div>
600 </div>
601 </div>
602 <div class="orderedlist">
603 <ol type="1">
604 <li>
605 <p>
606 Limited the size of a log record generated by freeing pages from a database, so that it fits in the log file size. [#17313]
607 </p>
608 </li>
609 </ol>
610 </div>
611 </div>
612 <div class="sect3" lang="en" xml:lang="en">
613 <div class="titlepage">
614 <div>
615 <div>
616 <h4 class="title"><a id="idp1123584"></a>Memory Pool Subsystem Changes</h4>
617 </div>
618 </div>
619 </div>
620 <div class="orderedlist">
621 <ol type="1">
622 <li>
623 <p>
624 Fixed a bug to ensure mulitple versions of a buffer are not created when MVCC is not set. [#17495]
625 </p>
626 </li>
627 <li>
628 <p>
629 Fixed a bug to detect if cache size is being set when the cache is not configured. [#17556]
630 </p>
631 </li>
632 <li>
633 <p>
634 Fixed a bug to ensure the error message "unable to allocate space from the buffer cache" generated when there is still some space available, can be cleared by running recovery.[#17630]
635 </p>
636 </li>
637 <li>
638 <p>
639 Fixed a race condition that causes an operation to return EPERM when the buffer cache is nearly filled with pages belonging to recently closed queue extents. [#17840]
640 </p>
641 </li>
642 <li>
643 <p>
644 Fixed a bug that could cause a page needed by a snapshot reader to be overwritten rather than copied when it was freed. [#17973]
645 </p>
646 </li>
647 <li>
648 <p>
649 Enabled set_mp_pagesize to be specified in the DB_CONFIG file. [#18015]
650 </p>
651 </li>
652 <li>
653 <p>
654 Fixed a bug to ensure single-version or obsolete buffers were selected over any intermediate version. [#18114]
655 </p>
656 </li>
657 </ol>
658 </div>
659 </div>
660 <div class="sect3" lang="en" xml:lang="en">
661 <div class="titlepage">
662 <div>
663 <div>
664 <h4 class="title"><a id="idp1160120"></a>Mutex Subsystem Changes</h4>
665 </div>
666 </div>
667 </div>
668 <div class="orderedlist">
669 <ol type="1">
670 <li>
671 <p>
672 Fixed a bug on HP-UX when specifying --with-mutex=HP/msem_init during configure. It would generate the error "TAS: mutex not appropriately aligned" at runtime, when initializing the first mutex. [#17489]
673 </p>
674 </li>
675 <li>
676 <p>
677 Fixed a race condition which could cause unnecessary retrying of btree searches when several threads simulatenously attempted to get a shared latch. [#18078]
678 </p>
679 </li>
680 <li>
681 <p>
682 Exclusive Transactions have been implemented for the SQL API. See the documentation for details on the behavior of this feature. [#17822]
683 </p>
684 </li>
685 </ol>
686 </div>
687 </div>
688 <div class="sect3" lang="en" xml:lang="en">
689 <div class="titlepage">
690 <div>
691 <div>
692 <h4 class="title"><a id="idp1115344"></a>Tcl-specific API Changes</h4>
693 </div>
694 </div>
695 </div>
696 <div class="orderedlist">
697 <ol type="1">
698 <li>
699 <p>
700 Fixed a bug in Tcl API to prevent a segmentation fault from occurring when the get_dbname method is called to get the db name and the db handle is opened without providing either the filename or dbname. [#18037]
701 </p>
702 </li>
703 </ol>
704 </div>
705 </div>
706 <div class="sect3" lang="en" xml:lang="en">
707 <div class="titlepage">
708 <div>
709 <div>
710 <h4 class="title"><a id="idp1092960"></a>C#-specific API Changes</h4>
711 </div>
712 </div>
713 </div>
714 <div class="orderedlist">
715 <ol type="1">
716 <li>
717 <p>
718 Fixed a bug in C# to prevent a System.AccessViolationException from occurring on Windows7 when trying to open new database. [#18422]
719 </p>
720 </li>
721 <li>
722 <p>
723 Fixed a bug in the C# API to make DB_COMPACT consistent with __db_compact in teh C API. [#18246]
724 </p>
725 </li>
726 </ol>
727 </div>
728 </div>
729 <div class="sect3" lang="en" xml:lang="en">
730 <div class="titlepage">
731 <div>
732 <div>
733 <h4 class="title"><a id="idp1162728"></a>API Changes</h4>
734 </div>
735 </div>
736 </div>
737 <div class="orderedlist">
738 <ol type="1">
739 <li>
740 <p>
741 Added the dbstl_thread_exit method to release thread specific resouces on thread exit. [#17595]
742 </p>
743 </li>
744 <li>
745 <p>
746 Fixed the parser to allow configuration API flags set in the DB_CONFIG file to accept an optional ON/OFF string. The DB_REP_CONF_NOAUTOINIT flag has been removed. It is replaced by DB_REP_CONF_AUTOINIT. However, replication's default behavior remains the same. [#17795]
747 </p>
748 </li>
749 </ol>
750 </div>
751 </div>
752 <div class="sect3" lang="en" xml:lang="en">
753 <div class="titlepage">
754 <div>
755 <div>
756 <h4 class="title"><a id="idp1151648"></a>Replication Changes</h4>
757 </div>
758 </div>
759 </div>
760 <div class="orderedlist">
761 <ol type="1">
762 <li>
763 <p>
764 Fixed bug where a not-in-sync client could service a peer request. [#18279]
765 </p>
766 </li>
767 <li>
768 <p>
769 Fixed bug where page gaps, once filled, would not immediately request the next page gap it finds. This was already fixed for logs. [#18219]
770 </p>
771 </li>
772 <li>
773 <p>
774 Fixed a bug so that only one thread waits for the meta-page lock during internal initialization and broadcasts out the information rather than all threads waiting. Removed the former retry code. [#17871]
775 </p>
776 </li>
777 <li>
778 <p>
779 Added a feature by which the DB-&gt;open method now allows the DB_CREATE flag on a replication client. It is ignored, but this allows a replication application to make one call that can work on either master or client. It fixes a possible race that could develop in a Replication Manager application if a call to DB-&gt;open is made around the same time as a master/client role change. [#15167]
780 </p>
781 </li>
782 <li>
783 <p>
784 The DB_ENV-&gt;repmgr_site_list method now returns an indication on whether the site is a client-to-client peer. [#16113]
785 </p>
786 </li>
787 <li>
788 <p>
789 Fixed a bug that could occasionally lead to elections failing to complete. [#17105]
790 </p>
791 </li>
792 <li>
793 <p>
794 Fixed a bug that could cause DB_ENV-&gt;txn_stat to trap. [#17198]
795 </p>
796 </li>
797 <li>
798 <p>
799 Added a new JOIN_FAILURE event to notify Replication Manager applications which refuse auto-initialization. [#17319]
800 </p>
801 </li>
802 <li>
803 <p>
804 Fixed a bug where a failed master lease check at a client site causes an ASSERT when processing a master lease grant at the master site. [#17869]
805 </p>
806 </li>
807 <li>
808 <p>
809 Fixed a bug to ensure a second simultaneous call to the DB_ENV-&gt;rep_elect method does not incorrectly clear a bit flag. [#17875]
810 </p>
811 </li>
812 <li>
813 <p>
814 Fixed a bug in client-side autoremoval of log files. [#17899]
815 </p>
816 </li>
817 <li>
818 <p>
819 Removed the likelihood of dual data streams to enhance network traffic. [#17955]
820 </p>
821 </li>
822 <li>
823 <p>
824 Fixed a bug such that non-txn dup cursors are accounted for in the replication API lockout. [#18080]
825 </p>
826 </li>
827 <li>
828 <p>
829 Fixed a bug to ensure checking for other sync states for the rerequest thread. [#18126]
830 </p>
831 </li>
832 <li>
833 <p>
834 Fixed a bug to avoid getting stuck in an election forever. [#18151]
835 </p>
836 </li>
837 <li>
838 <p>
839 Fixed a bug where using client-to-client synchronization with Master Leases could have resulted in failure of a new master to get initial lease grants from sufficient number of clients, resulting in a master environment panic. [#18254]
840 </p>
841 </li>
842 <li>
843 <p>
844 Fixed a bug which had prevented Replication Manager socket operations from working on HP/UX systems. [#18382]
845 </p>
846 </li>
847 <li>
848 <p>
849 Fixed a bug where starting as a client in multiple threads after receiving dupmaster messages could have resulted in a failure to find a new log file, resulting in a panic. [#18388]
850 </p>
851 </li>
852 <li>
853 <p>
854 The default thread stack size is no longer overridden by default for Berkeley DB threads. [#18383]
855 </p>
856 </li>
857 </ol>
858 </div>
859 </div>
860 <div class="sect3" lang="en" xml:lang="en">
861 <div class="titlepage">
862 <div>
863 <div>
864 <h4 class="title"><a id="idp1152712"></a>Transaction Subsystem Changes</h4>
865 </div>
866 </div>
867 </div>
868 <div class="orderedlist">
869 <ol type="1">
870 <li>
871 <p>
872 Fixed a bug that caused transactions to deadlock on the mutex in the sequence object. [#17731]
873 </p>
874 </li>
875 <li>
876 <p>
877 Fixed a bug to ensure that the failure checking mechanism reconstructs child transactions correctly when a process dies with active sub-transactions. [#18154]
878 </p>
879 </li>
880 <li>
881 <p>
882 Removed a memory leak during recovery related to a deleted database [#18273]
883 </p>
884 </li>
885 </ol>
886 </div>
887 </div>
888 <div class="sect3" lang="en" xml:lang="en">
889 <div class="titlepage">
890 <div>
891 <div>
892 <h4 class="title"><a id="idp1155112"></a>Utility Changes</h4>
893 </div>
894 </div>
895 </div>
896 <div class="orderedlist">
897 <ol type="1">
898 <li>
899 <p>
900 Fixed compiler warnings in the db_sql_codegen utility. [#17503]
901 </p>
902 </li>
903 <li>
904 <p>
905 Enhanced the db_recover -v utility to display the message, "No log files found", if no logs are present. [#17504]
906 </p>
907 </li>
908 <li>
909 <p>
910 Modified the db_verify utility to verify all files instead of aborting on the first failure. [#17513]
911 </p>
912 </li>
913 <li>
914 <p>
915 Modified the db_verify utility to display a message after verification is completed. [#17545]
916 </p>
917 </li>
918 <li>
919 <p>
920 Fixed a bug in the db_sql_codegen utility where the primary key is stored in both key and data fields. Removed it from the data field. [#17925]
921 </p>
922 </li>
923 </ol>
924 </div>
925 </div>
926 <div class="sect3" lang="en" xml:lang="en">
927 <div class="titlepage">
928 <div>
929 <div>
930 <h4 class="title"><a id="idp1183096"></a>Example Changes</h4>
931 </div>
932 </div>
933 </div>
934 <div class="orderedlist">
935 <ol type="1">
936 <li>
937 <p>
938 Fixed a bug that causes the ex_txn C# example to hang. [#17376]
939 </p>
940 </li>
941 <li>
942 <p>
943 Fixed Solaris alignment issues in Stl port test code. [#17459]
944 </p>
945 </li>
946 <li>
947 <p>
948 Added GCC 4.4 compatibility support for all examples. [#17584]
949 </p>
950 </li>
951 <li>
952 <p>
953 Added new command line arguments(-h and -d) to the env examples. [#17624]
954 </p>
955 </li>
956 <li>
957 <p>
958 Fixed configuration problems related to running java API tests. [#17625]
959 </p>
960 </li>
961 <li>
962 <p>
963 Updated the bench_001 example to include bulk testing examples. [#17766]
964 </p>
965 </li>
966 <li>
967 <p>
968 Added a new Stl example to demo advanced feature usage. The Stl test cases referred earlier are replaced by these new examples in the Stl reference document. [#18175]
969 </p>
970 </li>
971 </ol>
972 </div>
973 </div>
974 <div class="sect3" lang="en" xml:lang="en">
975 <div class="titlepage">
976 <div>
977 <div>
978 <h4 class="title"><a id="idp1193464"></a>Deprecated Features</h4>
979 </div>
980 </div>
981 </div>
982 <div class="orderedlist">
983 <ol type="1">
984 <li>
985 <p>
986 The configuration options --disable-cryptography and --enable-cryptoraphy are being deprecated. [#18110]
987 </p>
988 </li>
989 </ol>
990 </div>
991 </div>
992 <div class="sect3" lang="en" xml:lang="en">
993 <div class="titlepage">
994 <div>
995 <div>
996 <h4 class="title"><a id="idp1185088"></a>Configuration, Documentation, Sample Apps, Portability and Build Changes</h4>
997 </div>
998 </div>
999 </div>
1000 <div class="orderedlist">
1001 <ol type="1">
1002 <li>
1003 <p>
1004 Remove build files for Windows Visual Studio 6.0. [#16848]
1005 </p>
1006 </li>
1007 <li>
1008 <p>
1009 Added an API, DBENV-&gt;db_full_version, to return db full version.
1010 </p>
1011 </li>
1012 <li>
1013 <p>
1014 Berkeley DB no longer supports Win9X, Windows Me (Millenium edition) and NT 4.0. The minimum supported windows platform is Win 2k.
1015 </p>
1016 </li>
1017 <li>
1018 <p>
1019 Berkeley DB no longer supports Visual Studio 6.0. The earliest version supported is Visual Studio 2005.
1020 </p>
1021 </li>
1022 <li>
1023 <p>
1024 Added "+u1" to CFLAGS for HP ANSI C Compiler on HP-UX(IA64) to fix the alignment issue found with the allocation functions DB-&gt;set-alloc and DB_ENV-&gt;set_alloc. [#17257]
1025 </p>
1026 </li>
1027 <li>
1028 <p>
1029 Fixed a bug such that the thread local storage (TLS) definition modifier is correctly deduced from the m4 script on all platforms. [#17609][#17713]
1030 </p>
1031 </li>
1032 <li>
1033 <p>
1034 Fixed a bug such that TLS key is not initialized on platforms which do not support thread local storage (TLS) keywords, such as MAC OSX, and where TLS is implemented using pthread API. [#18001]
1035 </p>
1036 </li>
1037 <li>
1038 <p>
1039 Fixed a bug to ensure that when using Intel C++ compiler (icpc), the TLS code builds successfully. A stricter criteria is adopted to deduce the TLS keyword, and hence pthread API is more likely to be used to implement TLS. [#18038]
1040 </p>
1041 </li>
1042 <li>
1043 <p>
1044 Adding new configuration option, --with-cryptography={yes|no|ipp}. Using --with-cryptography=yes, will give equivalent behavior to the old --enable-cryptography option. Using --with-cryptography=no, will give equivalent behavior to the old --disable-cryptography option. Using --with-cryptograhy=ipp will enable Intel's Performance Primitive (IPP) encryption on linux. [#18110]
1045 </p>
1046 </li>
1047 </ol>
1048 </div>
1049 </div>
1050 </div>
1051 <div class="sect2" lang="en" xml:lang="en">
1052 <div class="titlepage">
1053 <div>
1054 <div>
1055 <h3 class="title"><a id="idp1131672"></a>Known Bugs</h3>
1056 </div>
1057 </div>
1058 </div>
1059 <div class="orderedlist">
1060 <ol type="1">
1061 <li>
1062 <p>
1063 The configure option --with-uniquename may cause macro redefinition warnings on platforms where BDB implements parts of the standard C library. These warnings (e.g., '"db_int_def.h", line 586: warning: macro redefined: strsep') may occur when functions in the "clib" directory are included during configuration. This cosmetic affect does not affect the correct operation of the library. [#17172]
1064 </p>
1065 </li>
1066 <li>
1067 <p>
1068 A multithreaded application using a private environment and multi-version concurrency control could, on very rare occasions, generate an illegal pointer access error during the final steps of a clean environment shutdown. [#17507]
1069 </p>
1070 </li>
1071 <li>
1072 <p>
1073 Although rare, it is possible for a partial log record header at the end of a transaction log to be erroneously accepted as if it were valid, causing the error "Illegal record type 0 in log" during recovery. [#17851]
1074 </p>
1075 </li>
1076 <li>
1077 <p>
1078 It is possible to get the error "unable to allocate space from the buffer cache" when there are disk errors on the freezer files used by multi-version concurrency control . [#17902]
1079 </p>
1080 </li>
1081 <li>
1082 <p>
1083 Java API does not support partitioning by keys and the C# API doesn't support partitioning. [#18350]
1084 </p>
1085 </li>
1086 <li>
1087 <p>
1088 If a database is removed from an environment and it was still opened transactionally and recovery is run, then a future recovery that must process that part of the log may fail. [#18459]
1089 </p>
1090 </li>
1091 <li>
1092 <p>
1093 Replication "bulk transfer" does not work if Berkeley DB is unable to determine, at environment open time, whether the Replication Manager will be used. To work around this problem, an application using the Replication Manager should call DB_ENV-&gt;repmgr_set_local_site() before opening the environment. An application using the replication Base API should call DB_ENV-&gt;rep_set_transport() before opening the environment. [#18476]
1094 </p>
1095 </li>
1096 <li>
1097 <p>
1098 The BTree prefix comparison function behaves slightly differently in the C API vs the C# API. In the C# API it returns a signed int and in the C API it returns an unsigned int. This can be a problem if the application needs to save more than 2^31 bytes.
1099 </p>
1100 </li>
1101 </ol>
1102 </div>
1103 </div>
1104 </div>
1105 <div class="navfooter">
1106 <hr />
1107 <table width="100%" summary="Navigation footer">
1108 <tr>
1109 <td width="40%" align="left"><a accesskey="p" href="build_unix_stacksize.html">Prev</a> </td>
1110 <td width="20%" align="center">
1111 <a accesskey="u" href="upgrade_11gr2_toc.html">Up</a>
1112 </td>
1113 <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_8_toc.html">Next</a></td>
1114 </tr>
1115 <tr>
1116 <td width="40%" align="left" valign="top">Changing Stack Size </td>
1117 <td width="20%" align="center">
1118 <a accesskey="h" href="index.html">Home</a>
1119 </td>
1120 <td width="40%" align="right" valign="top"> Chapter 13. Upgrading Berkeley DB 4.7 applications to Berkeley DB 4.8</td>
1121 </tr>
1122 </table>
1123 </div>
1124 </body>
1125 </html>