summaryrefslogtreecommitdiff
path: root/docs/gsg_txn/CXX
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gsg_txn/CXX')
-rw-r--r--docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdfbin1031524 -> 1031617 bytes
-rw-r--r--docs/gsg_txn/CXX/abortresults.html2
-rw-r--r--docs/gsg_txn/CXX/apireq.html2
-rw-r--r--docs/gsg_txn/CXX/architectrecovery.html2
-rw-r--r--docs/gsg_txn/CXX/autocommit.html2
-rw-r--r--docs/gsg_txn/CXX/backuprestore.html14
-rw-r--r--docs/gsg_txn/CXX/blocking_deadlocks.html2
-rw-r--r--docs/gsg_txn/CXX/enabletxn.html4
-rw-r--r--docs/gsg_txn/CXX/envopen.html2
-rw-r--r--docs/gsg_txn/CXX/exclusivelock.html2
-rw-r--r--docs/gsg_txn/CXX/filemanagement.html35
-rw-r--r--docs/gsg_txn/CXX/hotfailover.html25
-rw-r--r--docs/gsg_txn/CXX/index.html10
-rw-r--r--docs/gsg_txn/CXX/inmem_txnexample_c.html26
-rw-r--r--docs/gsg_txn/CXX/introduction.html2
-rw-r--r--docs/gsg_txn/CXX/isolation.html2
-rw-r--r--docs/gsg_txn/CXX/lockingsubsystem.html4
-rw-r--r--docs/gsg_txn/CXX/logconfig.html2
-rw-r--r--docs/gsg_txn/CXX/logfileremoval.html2
-rw-r--r--docs/gsg_txn/CXX/maxtxns.html2
-rw-r--r--docs/gsg_txn/CXX/moreinfo.html16
-rw-r--r--docs/gsg_txn/CXX/multithread-intro.html2
-rw-r--r--docs/gsg_txn/CXX/nestedtxn.html2
-rw-r--r--docs/gsg_txn/CXX/nodurabletxn.html2
-rw-r--r--docs/gsg_txn/CXX/perftune-intro.html6
-rw-r--r--docs/gsg_txn/CXX/preface.html6
-rw-r--r--docs/gsg_txn/CXX/readmodifywrite.html2
-rw-r--r--docs/gsg_txn/CXX/recovery-intro.html2
-rw-r--r--docs/gsg_txn/CXX/recovery.html2
-rw-r--r--docs/gsg_txn/CXX/reversesplit.html2
-rw-r--r--docs/gsg_txn/CXX/sysfailure.html2
-rw-r--r--docs/gsg_txn/CXX/txn_ccursor.html2
-rw-r--r--docs/gsg_txn/CXX/txnconcurrency.html2
-rw-r--r--docs/gsg_txn/CXX/txncursor.html2
-rw-r--r--docs/gsg_txn/CXX/txnexample_c.html23
-rw-r--r--docs/gsg_txn/CXX/txnindices.html2
-rw-r--r--docs/gsg_txn/CXX/txnnowait.html2
-rw-r--r--docs/gsg_txn/CXX/usingtxns.html2
-rw-r--r--docs/gsg_txn/CXX/wrapup.html2
39 files changed, 121 insertions, 102 deletions
diff --git a/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf b/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf
index 9b16686c..8546d9b1 100644
--- a/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf
+++ b/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf
Binary files differ
diff --git a/docs/gsg_txn/CXX/abortresults.html b/docs/gsg_txn/CXX/abortresults.html
index e94a5d55..25d2cc47 100644
--- a/docs/gsg_txn/CXX/abortresults.html
+++ b/docs/gsg_txn/CXX/abortresults.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/apireq.html b/docs/gsg_txn/CXX/apireq.html
index 8d38720d..f0ba4410 100644
--- a/docs/gsg_txn/CXX/apireq.html
+++ b/docs/gsg_txn/CXX/apireq.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/architectrecovery.html b/docs/gsg_txn/CXX/architectrecovery.html
index 13c1fa44..cdd806bd 100644
--- a/docs/gsg_txn/CXX/architectrecovery.html
+++ b/docs/gsg_txn/CXX/architectrecovery.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/autocommit.html b/docs/gsg_txn/CXX/autocommit.html
index 2c09cbc5..0abb95c5 100644
--- a/docs/gsg_txn/CXX/autocommit.html
+++ b/docs/gsg_txn/CXX/autocommit.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/backuprestore.html b/docs/gsg_txn/CXX/backuprestore.html
index bd976877..b661c452 100644
--- a/docs/gsg_txn/CXX/backuprestore.html
+++ b/docs/gsg_txn/CXX/backuprestore.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -113,6 +113,14 @@
</li>
</ul>
</div>
+ <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
+ <h3 class="title">Note</h3>
+ <p>
+ DB backups are byte-order independent. That is, a backup
+ taken on a big-endian machine can be used to restore a database
+ residing on a little-endian machine.
+ </p>
+ </div>
<p>
Once you have performed a backup, you can
perform <span class="emphasis"><em>catastrophic recovery</em></span> to restore
@@ -286,7 +294,7 @@
For more information, see the
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/envset_flags.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/envset_flags.html" target="_top">
DbEnv::set_flags() API reference page.
</a>
@@ -375,7 +383,7 @@
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/txnbegin.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/txnbegin.html" target="_top">
DbEnv::txn_begin() API reference page.
</a>
diff --git a/docs/gsg_txn/CXX/blocking_deadlocks.html b/docs/gsg_txn/CXX/blocking_deadlocks.html
index 4834c0c2..e9178b6e 100644
--- a/docs/gsg_txn/CXX/blocking_deadlocks.html
+++ b/docs/gsg_txn/CXX/blocking_deadlocks.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/enabletxn.html b/docs/gsg_txn/CXX/enabletxn.html
index c59b9f2d..5504f765 100644
--- a/docs/gsg_txn/CXX/enabletxn.html
+++ b/docs/gsg_txn/CXX/enabletxn.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -489,7 +489,7 @@
Note that the <code class="literal">add_data_dir</code>
parameter overrides any value set by the
- <code class="methodname">DbEnv::set_data_dir()</code>
+ <code class="methodname">DbEnv::add_data_dir()</code>
method.
</p>
diff --git a/docs/gsg_txn/CXX/envopen.html b/docs/gsg_txn/CXX/envopen.html
index 08b11d1d..70590080 100644
--- a/docs/gsg_txn/CXX/envopen.html
+++ b/docs/gsg_txn/CXX/envopen.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/exclusivelock.html b/docs/gsg_txn/CXX/exclusivelock.html
index 70a774f5..a719fa27 100644
--- a/docs/gsg_txn/CXX/exclusivelock.html
+++ b/docs/gsg_txn/CXX/exclusivelock.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/filemanagement.html b/docs/gsg_txn/CXX/filemanagement.html
index 46da2aa2..6570e24d 100644
--- a/docs/gsg_txn/CXX/filemanagement.html
+++ b/docs/gsg_txn/CXX/filemanagement.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -178,10 +178,11 @@
</li>
<li>
<p>
- Temporary files, which are created only under certain special circumstances. These files never need to
- be backed up or otherwise managed and so they are not a consideration for the topics described in this
- chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a>
- for more information on temporary files.
+ Temporary files, which are created only under certain
+ special circumstances. These files never need to be backed
+ up or otherwise managed and so they are not a consideration
+ for the topics described in this chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> for more
+ information on temporary files.
</p>
</li>
</ul>
@@ -227,11 +228,15 @@
<ul type="disc">
<li>
<p>
- Flushes dirty pages from the in-memory cache. This means that data modifications found in your
- in-memory cache are written to the database files on disk. Note that a checkpoint also causes data
- dirtied by an uncommitted transaction to also be written to your database files on disk. In this latter
- case, DB's normal recovery is used to remove any such modifications that were subsequently
- abandoned by your application using a transaction abort.
+ Flushes dirty pages from the in-memory cache. This
+ means that data modifications found in your in-memory
+ cache are written to the database files on disk. Note that
+ a checkpoint also causes data dirtied by an uncommitted
+ transaction to also be written to your database files on
+ disk. In this latter case, DB's normal recovery is
+ used to remove any such modifications that were
+ subsequently abandoned by your application using a
+ transaction abort.
</p>
<p>
Normal recovery is describe in <a class="xref" href="recovery.html" title="Recovery Procedures">Recovery Procedures</a>.
@@ -244,7 +249,8 @@
</li>
<li>
<p>
- Flushes the log. This causes all log data that has not yet been written to disk to be written.
+ Flushes the log. This causes all log data that has not
+ yet been written to disk to be written.
</p>
</li>
<li>
@@ -256,8 +262,9 @@
</div>
<p>
There are several ways to run a checkpoint. One way is to use
- the <span class="command"><strong>db_checkpoint</strong></span> command line utility. (Note, however, that this command line utility
- cannot be used if your environment was opened using
+ the <span class="command"><strong>db_checkpoint</strong></span> command line utility.
+ (Note, however, that this command line utility cannot be used
+ if your environment was opened using
<span>
<code class="literal">DB_PRIVATE</code>.)
</span>
@@ -284,7 +291,7 @@
<p>
For configuration information, see the
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/txncheckpoint.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/txncheckpoint.html" target="_top">
DbEnv::txn_checkpoint() API reference page.
</a>
diff --git a/docs/gsg_txn/CXX/hotfailover.html b/docs/gsg_txn/CXX/hotfailover.html
index b46fab8e..12b9963c 100644
--- a/docs/gsg_txn/CXX/hotfailover.html
+++ b/docs/gsg_txn/CXX/hotfailover.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -152,9 +152,10 @@
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
- Rather than use the previous procedure, you can use the <span class="command"><strong>db_hotbackup</strong></span> command line utility
- to do the same thing. This utility will (optionally) run a checkpoint and then copy all necessary files to a target
- directory for you.
+ Rather than use the previous procedure, you can use the
+ <span class="command"><strong>db_hotbackup</strong></span> command line utility to do the
+ same thing. This utility will (optionally) run a checkpoint and
+ then copy all necessary files to a target directory for you.
</p>
</div>
<p>
@@ -169,14 +170,18 @@
</li>
<li>
<p>
- If you have an archival copy of the backup environment, you can optionally try copying the remaining
- log files from the original environment and running catastrophic recovery against that backup
- environment. Do this <span class="emphasis"><em>only</em></span> if you have a an archival copy of the backup
- environment.
+ If you have an archival copy of the backup environment,
+ you can optionally try copying the remaining log files
+ from the original environment and running catastrophic
+ recovery against that backup environment. Do this
+ <span class="emphasis"><em>only</em></span> if you have a an archival
+ copy of the backup environment.
</p>
<p>
- This step can allow you to recover data created or modified in the original environment, but which
- did not have a chance to be reflected in the hot backup environment.
+ This step can allow you to recover data created or
+ modified in the original environment, but which did not
+ have a chance to be reflected in the hot backup
+ environment.
</p>
</li>
<li>
diff --git a/docs/gsg_txn/CXX/index.html b/docs/gsg_txn/CXX/index.html
index ba4f6d6f..c4055d44 100644
--- a/docs/gsg_txn/CXX/index.html
+++ b/docs/gsg_txn/CXX/index.html
@@ -12,7 +12,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -30,11 +30,11 @@
<div class="titlepage">
<div>
<div>
- <h1 class="title"><a id="idm243608"></a>Getting Started with Berkeley DB Transaction Processing</h1>
+ <h1 class="title"><a id="idm951248"></a>Getting Started with Berkeley DB Transaction Processing</h1>
</div>
<div>
<div class="legalnotice">
- <a id="idp43984"></a>
+ <a id="idp50442408"></a>
<p class="legalnotice-title">
<b>Legal Notice</b>
</p>
@@ -64,7 +64,7 @@
<p>
To obtain a copy of this document's original source code, please
submit a request to the Oracle Technology Network forum at:
- <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>
+ <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>
</p>
@@ -72,7 +72,7 @@
</div>
</div>
<div>
- <p class="pubdate">5/11/2012</p>
+ <p class="pubdate">2/17/2015</p>
</div>
</div>
<hr />
diff --git a/docs/gsg_txn/CXX/inmem_txnexample_c.html b/docs/gsg_txn/CXX/inmem_txnexample_c.html
index 0ea30571..f5f31012 100644
--- a/docs/gsg_txn/CXX/inmem_txnexample_c.html
+++ b/docs/gsg_txn/CXX/inmem_txnexample_c.html
@@ -13,7 +13,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -134,7 +134,7 @@
// Printing of pthread_t is implementation-specific, so we
// create our own thread IDs for reporting purposes.
int global_thread_num;
-pthread_mutex_t thread_num_lock;
+mutex_t thread_num_lock;
// Forward declarations
int countRecords(Db *, DbTxn *);
@@ -159,7 +159,7 @@ main(void)
Db *dbp = NULL;
DbEnv *envp = NULL;
- pthread_t writerThreads[NUMWRITERS];
+ thread_t writerThreads[NUMWRITERS];
int i;
u_int32_t envFlags;
@@ -253,18 +253,18 @@ main(void)
we change the error message string so as to not reference the database filename.
</p>
<pre class="programlisting"> // Initialize a pthread mutex. Used to help provide thread ids.
- (void)pthread_mutex_init(&amp;thread_num_lock, NULL);
+ (void)mutex_init(&amp;thread_num_lock, NULL);
// Start the writer threads.
for (i = 0; i &lt; NUMWRITERS; i++)
- (void)pthread_create(
+ (void)thread_create(
&amp;writerThreads[i], NULL,
writerThread,
(void *)dbp);
// Join the writers
for (i = 0; i &lt; NUMWRITERS; i++)
- (void)pthread_join(writerThreads[i], NULL);
+ (void)thread_join(writerThreads[i], NULL);
} catch(DbException &amp;e) {
<strong class="userinput"><code>std::cerr &lt;&lt; "Error opening database environment: "</code></strong>
@@ -323,13 +323,13 @@ writerThread(void *args)
"key 9", "key 10"};
// Get the thread number
- (void)pthread_mutex_lock(&amp;thread_num_lock);
+ (void)mutex_lock(&amp;thread_num_lock);
global_thread_num++;
thread_num = global_thread_num;
- (void)pthread_mutex_unlock(&amp;thread_num_lock);
+ (void)mutex_unlock(&amp;thread_num_lock);
// Initialize the random number generator
- srand((u_int)pthread_self());
+ srand(thread_num);
// Perform 50 transactions
for (int i=0; i&lt;50; i++) {
@@ -359,9 +359,9 @@ writerThread(void *args)
// Perform the database write for this transaction.
for (j = 0; j &lt; 10; j++) {
Dbt key, value;
- key.set_data(key_strings[j]);
- key.set_size((strlen(key_strings[j]) + 1) *
- sizeof(char));
+ key.set_data((void *)key_strings[j]);
+ key.set_size(
+ (u_int32_t)(strlen(key_strings[j]) + 1);
int payload = rand() + i;
value.set_data(&amp;payload);
@@ -523,7 +523,7 @@ openDb(Db **dbpp, const char *progname, const char *fileName,
experiment with this code, you can find the example in the following
location in your DB distribution:
</p>
- <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_cxx/txn_guide</pre>
+ <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/cxx/txn_guide</pre>
</div>
<div class="navfooter">
<hr />
diff --git a/docs/gsg_txn/CXX/introduction.html b/docs/gsg_txn/CXX/introduction.html
index 87a786ee..1c6789b6 100644
--- a/docs/gsg_txn/CXX/introduction.html
+++ b/docs/gsg_txn/CXX/introduction.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/isolation.html b/docs/gsg_txn/CXX/isolation.html
index d31d34cb..7e8bdca9 100644
--- a/docs/gsg_txn/CXX/isolation.html
+++ b/docs/gsg_txn/CXX/isolation.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/lockingsubsystem.html b/docs/gsg_txn/CXX/lockingsubsystem.html
index 40e6ccd7..e83648f2 100644
--- a/docs/gsg_txn/CXX/lockingsubsystem.html
+++ b/docs/gsg_txn/CXX/lockingsubsystem.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -402,7 +402,7 @@ int main(void)
<pre class="programlisting">&gt; /usr/local/db_install/bin/db_deadlock -h /export/dbenv -a y</pre>
<p>
For more information, see the
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top">
<code class="literal">db_deadlock</code> reference documentation.
</a>
</p>
diff --git a/docs/gsg_txn/CXX/logconfig.html b/docs/gsg_txn/CXX/logconfig.html
index 5fc3086d..22d287c3 100644
--- a/docs/gsg_txn/CXX/logconfig.html
+++ b/docs/gsg_txn/CXX/logconfig.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/logfileremoval.html b/docs/gsg_txn/CXX/logfileremoval.html
index 4aac9ab4..7eff4669 100644
--- a/docs/gsg_txn/CXX/logfileremoval.html
+++ b/docs/gsg_txn/CXX/logfileremoval.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/maxtxns.html b/docs/gsg_txn/CXX/maxtxns.html
index bebbfe67..f7fea790 100644
--- a/docs/gsg_txn/CXX/maxtxns.html
+++ b/docs/gsg_txn/CXX/maxtxns.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/moreinfo.html b/docs/gsg_txn/CXX/moreinfo.html
index 8936b638..2ccd6271 100644
--- a/docs/gsg_txn/CXX/moreinfo.html
+++ b/docs/gsg_txn/CXX/moreinfo.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -55,7 +55,7 @@
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg/CXX/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg/CXX/index.html" target="_top">
Getting Started with Berkeley DB for C++
</a>
@@ -69,7 +69,7 @@
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_db_rep/CXX/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_db_rep/CXX/index.html" target="_top">
Berkeley DB Getting Started with Replicated Applications for C++
</a>
@@ -77,7 +77,7 @@
</li>
<li>
<p>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html" target="_top">
Berkeley DB Programmer's Reference Guide
</a>
</p>
@@ -86,7 +86,7 @@
<p>
<span>
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/frame_main.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/frame_main.html" target="_top">
Berkeley DB C++ API Reference Guide
</a>
</span>
@@ -115,7 +115,7 @@
downloads, visit
- <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>.
+ <a class="ulink" href="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html</a>.
</p>
</span>
<div class="sect2" lang="en" xml:lang="en">
@@ -130,8 +130,8 @@
You can post your comments and questions at the Oracle
Technology (OTN) forum for
<span>
- Oracle Berkeley DB at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>,
- or for Oracle Berkeley DB High Availability at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=272</a>.
+ Oracle Berkeley DB at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>,
+ or for Oracle Berkeley DB High Availability at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=272</a>.
</span>
diff --git a/docs/gsg_txn/CXX/multithread-intro.html b/docs/gsg_txn/CXX/multithread-intro.html
index 05bc3602..d6d4f411 100644
--- a/docs/gsg_txn/CXX/multithread-intro.html
+++ b/docs/gsg_txn/CXX/multithread-intro.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/nestedtxn.html b/docs/gsg_txn/CXX/nestedtxn.html
index f7c9546d..75f6bb7f 100644
--- a/docs/gsg_txn/CXX/nestedtxn.html
+++ b/docs/gsg_txn/CXX/nestedtxn.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/nodurabletxn.html b/docs/gsg_txn/CXX/nodurabletxn.html
index 4def0aef..4a644aa9 100644
--- a/docs/gsg_txn/CXX/nodurabletxn.html
+++ b/docs/gsg_txn/CXX/nodurabletxn.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/perftune-intro.html b/docs/gsg_txn/CXX/perftune-intro.html
index 7a8c2e67..97e1b001 100644
--- a/docs/gsg_txn/CXX/perftune-intro.html
+++ b/docs/gsg_txn/CXX/perftune-intro.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -55,11 +55,11 @@
<span>
However, for a more complete description of them, see the
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top">
Transaction tuning
</a>
and
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top">
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top">
Transaction throughput
</a>
sections of the <em class="citetitle">Berkeley DB Programmer's Reference Guide</em>.
diff --git a/docs/gsg_txn/CXX/preface.html b/docs/gsg_txn/CXX/preface.html
index 3b1d11ff..02cbf42d 100644
--- a/docs/gsg_txn/CXX/preface.html
+++ b/docs/gsg_txn/CXX/preface.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -73,8 +73,8 @@
have for deadlock detection.
</p>
<p>
- This book describes Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides library
- version 11.2.5.3.
+ This book describes Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which provides library
+ version 12.1.6.1.
</p>
<p>
This book is aimed at the software engineer responsible for writing a
diff --git a/docs/gsg_txn/CXX/readmodifywrite.html b/docs/gsg_txn/CXX/readmodifywrite.html
index 8cb515c6..5041f3cd 100644
--- a/docs/gsg_txn/CXX/readmodifywrite.html
+++ b/docs/gsg_txn/CXX/readmodifywrite.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/recovery-intro.html b/docs/gsg_txn/CXX/recovery-intro.html
index 5a1a596f..756334df 100644
--- a/docs/gsg_txn/CXX/recovery-intro.html
+++ b/docs/gsg_txn/CXX/recovery-intro.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/recovery.html b/docs/gsg_txn/CXX/recovery.html
index ac07c2ef..d212f61b 100644
--- a/docs/gsg_txn/CXX/recovery.html
+++ b/docs/gsg_txn/CXX/recovery.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/reversesplit.html b/docs/gsg_txn/CXX/reversesplit.html
index 388865f9..321b969e 100644
--- a/docs/gsg_txn/CXX/reversesplit.html
+++ b/docs/gsg_txn/CXX/reversesplit.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/sysfailure.html b/docs/gsg_txn/CXX/sysfailure.html
index 55442f47..46a5188b 100644
--- a/docs/gsg_txn/CXX/sysfailure.html
+++ b/docs/gsg_txn/CXX/sysfailure.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/txn_ccursor.html b/docs/gsg_txn/CXX/txn_ccursor.html
index de909ad5..7c97e04a 100644
--- a/docs/gsg_txn/CXX/txn_ccursor.html
+++ b/docs/gsg_txn/CXX/txn_ccursor.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/txnconcurrency.html b/docs/gsg_txn/CXX/txnconcurrency.html
index 22682830..d149bd9f 100644
--- a/docs/gsg_txn/CXX/txnconcurrency.html
+++ b/docs/gsg_txn/CXX/txnconcurrency.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/txncursor.html b/docs/gsg_txn/CXX/txncursor.html
index 413c155f..dcc35894 100644
--- a/docs/gsg_txn/CXX/txncursor.html
+++ b/docs/gsg_txn/CXX/txncursor.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/txnexample_c.html b/docs/gsg_txn/CXX/txnexample_c.html
index a6005e46..83a3f9f5 100644
--- a/docs/gsg_txn/CXX/txnexample_c.html
+++ b/docs/gsg_txn/CXX/txnexample_c.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -93,7 +93,7 @@ extern int getopt(int, char * const *, const char *);
<pre class="programlisting">// Printing of pthread_t is implementation-specific, so we
// create our own thread IDs for reporting purposes.
int global_thread_num;
-pthread_mutex_t thread_num_lock;
+mutex_t thread_num_lock;
// Forward declarations
int countRecords(Db *, DbTxn *);
@@ -124,7 +124,7 @@ main(int argc, char *argv[])
Db *dbp = NULL;
DbEnv *envp = NULL;
- pthread_t writerThreads[NUMWRITERS];
+ thread_t writerThreads[NUMWRITERS];
int ch, i;
u_int32_t envFlags;
char *dbHomeDir;
@@ -237,16 +237,16 @@ The implementation of <code class="function">open_db()</code> is described
thread.
</p>
<pre class="programlisting"> // Initialize a pthread mutex. Used to help provide thread ids.
- (void)pthread_mutex_init(&amp;thread_num_lock, NULL);
+ (void)mutex_init(&amp;thread_num_lock, NULL);
// Start the writer threads.
for (i = 0; i &lt; NUMWRITERS; i++)
- (void)pthread_create(&amp;writerThreads[i], NULL,
+ (void)thread_create(&amp;writerThreads[i], NULL,
writerThread, (void *)dbp);
// Join the writers
for (i = 0; i &lt; NUMWRITERS; i++)
- (void)pthread_join(writerThreads[i], NULL);
+ (void)thread_join(writerThreads[i], NULL);
} catch(DbException &amp;e) {
std::cerr &lt;&lt; "Error opening database environment: "
@@ -320,13 +320,13 @@ writerThread(void *args)
We use this random number generator for data generation.
</p>
<pre class="programlisting"> // Get the thread number
- (void)pthread_mutex_lock(&amp;thread_num_lock);
+ (void)mutex_lock(&amp;thread_num_lock);
global_thread_num++;
thread_num = global_thread_num;
- (void)pthread_mutex_unlock(&amp;thread_num_lock);
+ (void)mutex_unlock(&amp;thread_num_lock);
// Initialize the random number generator
- srand((u_int)pthread_self()); </pre>
+ srand(thread_num); </pre>
<p>
Now we begin the loop that we use to write data to the database.
@@ -387,8 +387,7 @@ writerThread(void *args)
for (j = 0; j &lt; 10; j++) {
Dbt key, value;
key.set_data(key_strings[j]);
- key.set_size((strlen(key_strings[j]) + 1) *
- sizeof(char));
+ key.set_size((u_int32_t)strlen(key_strings[j]) + 1);
int payload = rand() + i;
value.set_data(&amp;payload);
@@ -653,7 +652,7 @@ openDb(Db **dbpp, const char *progname, const char *fileName,
experiment with this code, you can find the example in the following
location in your DB distribution:
</p>
- <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_cxx/txn_guide</pre>
+ <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/cxx/txn_guide</pre>
</div>
<div class="navfooter">
<hr />
diff --git a/docs/gsg_txn/CXX/txnindices.html b/docs/gsg_txn/CXX/txnindices.html
index b7fa65ed..1ba8c24e 100644
--- a/docs/gsg_txn/CXX/txnindices.html
+++ b/docs/gsg_txn/CXX/txnindices.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/txnnowait.html b/docs/gsg_txn/CXX/txnnowait.html
index 806a086d..9e068d22 100644
--- a/docs/gsg_txn/CXX/txnnowait.html
+++ b/docs/gsg_txn/CXX/txnnowait.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/usingtxns.html b/docs/gsg_txn/CXX/usingtxns.html
index 4f956e93..805d7676 100644
--- a/docs/gsg_txn/CXX/usingtxns.html
+++ b/docs/gsg_txn/CXX/usingtxns.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
diff --git a/docs/gsg_txn/CXX/wrapup.html b/docs/gsg_txn/CXX/wrapup.html
index 80543ba5..8a588fde 100644
--- a/docs/gsg_txn/CXX/wrapup.html
+++ b/docs/gsg_txn/CXX/wrapup.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>