diff options
Diffstat (limited to 'bdb/docs/ref/upgrade.3.0')
32 files changed, 0 insertions, 1313 deletions
diff --git a/bdb/docs/ref/upgrade.3.0/close.html b/bdb/docs/ref/upgrade.3.0/close.html deleted file mode 100644 index 620e4babb8b..00000000000 --- a/bdb/docs/ref/upgrade.3.0/close.html +++ /dev/null @@ -1,34 +0,0 @@ -<!--$Id: close.so,v 11.9 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: DB->sync and DB->close</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_put.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: DB->sync and DB->close</h1> -<p>In previous Berkeley DB releases, the <a href="../../api_c/db_close.html">DB->close</a> and <a href="../../api_c/db_sync.html">DB->sync</a> functions -discarded any return of <a href="../../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> from the underlying buffer -pool interfaces, and returned success to its caller. (The -<a href="../../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> error will be returned if the buffer pool functions -are unable to flush all of the database's dirty blocks from the pool. -This often happens if another thread is reading or writing the database's -pages in the pool.) -<p>In the 3.X release, <a href="../../api_c/db_sync.html">DB->sync</a> and <a href="../../api_c/db_close.html">DB->close</a> will return -<a href="../../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> to the application. The best solution is to not -call <a href="../../api_c/db_sync.html">DB->sync</a> and specify the <a href="../../api_c/db_close.html#DB_NOSYNC">DB_NOSYNC</a> flag to the -<a href="../../api_c/db_close.html">DB->close</a> function when multiple threads are expected to be accessing the -database. Alternatively, the caller can ignore any error return of -<a href="../../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a>. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_put.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/cxx.html b/bdb/docs/ref/upgrade.3.0/cxx.html deleted file mode 100644 index 7f6c1ab7ea9..00000000000 --- a/bdb/docs/ref/upgrade.3.0/cxx.html +++ /dev/null @@ -1,31 +0,0 @@ -<!--$Id: cxx.so,v 11.5 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: additional C++ changes</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: additional C++ changes</h1> -<p>The Db::set_error_model method is gone. The way to change the C++ API to -return errors rather than throw exceptions is via a flag on the DbEnv or -Db constructor. For example: -<p><blockquote><pre>int dberr; -DbEnv *dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);</pre></blockquote> -<p>creates an environment that will never throw exceptions, and method -returns should be checked instead. -<p>There are a number of smaller changes to the API that bring the C, C++ -and Java APIs much closer in terms of functionality and usage. Please -refer to the pages for upgrading C applications for further details. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/db.html b/bdb/docs/ref/upgrade.3.0/db.html deleted file mode 100644 index a086b589e1b..00000000000 --- a/bdb/docs/ref/upgrade.3.0/db.html +++ /dev/null @@ -1,48 +0,0 @@ -<!--$Id: db.so,v 11.9 2000/12/01 17:57:34 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: the DB structure</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/xa.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbinfo.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: the DB structure</h1> -<p>The DB structure is now opaque for applications in the Berkeley DB 3.0 -release. Accesses to any fields within that structure by the application -should be replaced with method calls. The following example illustrates -this using the historic type structure field. In the Berkeley DB 2.X releases, -applications could find the type of an underlying database using code -similar to the following: -<p><blockquote><pre>DB *db; -DB_TYPE type; -<p> - type = db->type;</pre></blockquote> -<p>in the Berkeley DB 3.X releases, this should be done using the -<a href="../../api_c/db_get_type.html">DB->get_type</a> method, as follows: -<p><blockquote><pre>DB *db; -DB_TYPE type; -<p> - type = db->get_type(db);</pre></blockquote> -<p>The following table lists the DB fields previously used by -applications and the methods that should now be used to get or set them. -<p><table border=1 align=center> -<tr><th>DB field</th><th>Berkeley DB 3.X method</th></tr> -<tr><td>byteswapped</td><td><a href="../../api_c/db_get_byteswapped.html">DB->get_byteswapped</a></td></tr> -<tr><td>db_errcall</td><td><a href="../../api_c/db_set_errcall.html">DB->set_errcall</a></td></tr> -<tr><td>db_errfile</td><td><a href="../../api_c/db_set_errfile.html">DB->set_errfile</a></td></tr> -<tr><td>db_errpfx</td><td><a href="../../api_c/db_set_errpfx.html">DB->set_errpfx</a></td></tr> -<tr><td>db_paniccall</td><td><a href="../../api_c/db_set_paniccall.html">DB->set_paniccall</a></td></tr> -<tr><td>type</td><td><a href="../../api_c/db_get_type.html">DB->get_type</a></td></tr> -</table> -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/xa.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbinfo.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/db_cxx.html b/bdb/docs/ref/upgrade.3.0/db_cxx.html deleted file mode 100644 index e3a794e3865..00000000000 --- a/bdb/docs/ref/upgrade.3.0/db_cxx.html +++ /dev/null @@ -1,47 +0,0 @@ -<!--$Id: db_cxx.so,v 11.9 2000/03/22 22:02:14 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: the Db class for C++ and Java</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/dbenv_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: the Db class for C++ and Java</h1> -<p>The static Db::open method and the DbInfo class have been removed in the -Berkeley DB 3.0 release. The way to open a database file is to use the new Db -constructor with two arguments, followed by set_XXX methods to configure -the Db object, and finally a call to the new (nonstatic) Db::open(). In -comparing the Berkeley DB 3.0 release open method with the 2.X static open -method, the second argument is new. It is a database name, which can -be null. The DbEnv argument has been removed, as the environment is now -specified in the constructor. The open method no longer returns a Db, -since it operates on one. -<p>Here's a C++ example opening a Berkeley DB database using the 2.X interface: -<p><blockquote><pre>// Note: by default, errors are thrown as exceptions -Db *table; -Db::open("lookup.db", DB_BTREE, DB_CREATE, 0644, dbenv, 0, &table);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>// Note: by default, errors are thrown as exceptions -Db *table = new Db(dbenv, 0); -table->open("lookup.db", NULL, DB_BTREE, DB_CREATE, 0644);</pre></blockquote> -<p>Here's a Java example opening a Berkeley DB database using the 2.X interface: -<p><blockquote><pre>// Note: errors are thrown as exceptions -Db table = Db.open("lookup.db", Db.DB_BTREE, Db.DB_CREATE, 0644, dbenv, 0);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>// Note: errors are thrown as exceptions -Db table = new Db(dbenv, 0); -table.open("lookup.db", null, Db.DB_BTREE, Db.DB_CREATE, 0644);</pre></blockquote> -<p>Note that if the dbenv argument is null, the database will not exist -within an environment. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/dbenv_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/dbenv.html b/bdb/docs/ref/upgrade.3.0/dbenv.html deleted file mode 100644 index 08b6ec149ef..00000000000 --- a/bdb/docs/ref/upgrade.3.0/dbenv.html +++ /dev/null @@ -1,68 +0,0 @@ -<!--$Id: dbenv.so,v 11.9 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: the DB_ENV structure</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/func.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/open.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: the DB_ENV structure</h1> -<p>The DB_ENV structure is now opaque for applications in the Berkeley DB -3.0 release. Accesses to any fields within that structure by the -application should be replaced with method calls. The following example -illustrates this using the historic errpfx structure field. In the Berkeley DB -2.X releases, applications set error prefixes using code similar to the -following: -<p><blockquote><pre>DB_ENV *dbenv; -<p> - dbenv->errpfx = "my prefix";</pre></blockquote> -<p>in the Berkeley DB 3.X releases, this should be done using the -<a href="../../api_c/env_set_errpfx.html">DBENV->set_errpfx</a> method, as follows: -<p><blockquote><pre>DB_ENV *dbenv; -<p> - dbenv->set_errpfx(dbenv, "my prefix");</pre></blockquote> -<p>The following table lists the DB_ENV fields previously used by -applications and the methods that should now be used to set them. -<p><table border=1 align=center> -<tr><th>DB_ENV field</th><th>Berkeley DB 3.X method</th></tr> -<tr><td>db_errcall</td><td><a href="../../api_c/env_set_errcall.html">DBENV->set_errcall</a></td></tr> -<tr><td>db_errfile</td><td><a href="../../api_c/env_set_errfile.html">DBENV->set_errfile</a></td></tr> -<tr><td>db_errpfx</td><td><a href="../../api_c/env_set_errpfx.html">DBENV->set_errpfx</a></td></tr> -<tr><td>db_lorder</td><td>This field was removed from the DB_ENV structure in the Berkeley DB -3.0 release as no application should have ever used it. Any code using -it should be evaluated for potential bugs.</td></tr> -<tr><td>db_paniccall</td><td><a href="../../api_c/env_set_paniccall.html">DBENV->set_paniccall</a></td></tr> -<tr><td>db_verbose</td><td><a href="../../api_c/env_set_verbose.html">DBENV->set_verbose</a> -<p>Note: the db_verbose field was a simple boolean toggle, the -<a href="../../api_c/env_set_verbose.html">DBENV->set_verbose</a> method takes arguments that specify exactly -which verbose messages are desired.</td></tr> -<tr><td>lg_max</td><td><a href="../../api_c/env_set_lg_max.html">DBENV->set_lg_max</a></td></tr> -<tr><td>lk_conflicts</td><td><a href="../../api_c/env_set_lk_conflicts.html">DBENV->set_lk_conflicts</a></td></tr> -<tr><td>lk_detect</td><td><a href="../../api_c/env_set_lk_detect.html">DBENV->set_lk_detect</a></td></tr> -<tr><td>lk_max</td><td><a href="../../api_c/env_set_lk_max.html">DBENV->set_lk_max</a></td></tr> -<tr><td>lk_modes</td><td><a href="../../api_c/env_set_lk_conflicts.html">DBENV->set_lk_conflicts</a></td></tr> -<tr><td>mp_mmapsize</td><td><a href="../../api_c/env_set_mp_mmapsize.html">DBENV->set_mp_mmapsize</a></td></tr> -<tr><td>mp_size</td><td><a href="../../api_c/env_set_cachesize.html">DBENV->set_cachesize</a> -<p>Note: the <a href="../../api_c/env_set_cachesize.html">DBENV->set_cachesize</a> function takes additional arguments. -Setting both the second argument (the number of GB in the pool) and the -last argument (the number of memory pools to create) to 0 will result in -behavior that is backward compatible with previous Berkeley DB releases.</td></tr> -<tr><td>tx_info</td><td>This field was used by applications as an argument to the transaction -subsystem functions. As those functions take references to a -DB_ENV structure as arguments in the Berkeley DB 3.0 release, it should -no longer be used by any application.</td></tr> -<tr><td>tx_max</td><td><a href="../../api_c/env_set_tx_max.html">DBENV->set_tx_max</a></td></tr> -<tr><td>tx_recover</td><td><a href="../../api_c/env_set_tx_recover.html">DBENV->set_tx_recover</a></td></tr> -</table> -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/func.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/open.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/dbenv_cxx.html b/bdb/docs/ref/upgrade.3.0/dbenv_cxx.html deleted file mode 100644 index 8839d640897..00000000000 --- a/bdb/docs/ref/upgrade.3.0/dbenv_cxx.html +++ /dev/null @@ -1,72 +0,0 @@ -<!--$Id: dbenv_cxx.so,v 11.10 2000/12/01 17:59:32 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: the DbEnv class for C++ and Java</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/value_set.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: the DbEnv class for C++ and Java</h1> -<p>The DbEnv::appinit() method and two constructors for the DbEnv class are -gone. There is now a single way to create and initialize the environment. -The way to create an environment is to use the new DbEnv constructor with -one argument. After this call, the DbEnv can be configured with various -set_XXX methods. Finally, a call to DbEnv::open is made to initialize -the environment. -<p>Here's a C++ example creating a Berkeley DB environment using the 2.X interface -<p><blockquote><pre>int dberr; -DbEnv *dbenv = new DbEnv(); -<p> -dbenv->set_error_stream(&cerr); -dbenv->set_errpfx("myprog"); -<p> -if ((dberr = dbenv->appinit("/database/home", - NULL, DB_CREATE | DB_INIT_LOCK | DB_INIT_MPOOL)) != 0) { - cerr << "failure: " << strerror(dberr); - exit (1); -}</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>int dberr; -DbEnv *dbenv = new DbEnv(0); -<p> -dbenv->set_error_stream(&cerr); -dbenv->set_errpfx("myprog"); -<p> -if ((dberr = dbenv->open("/database/home", - NULL, DB_CREATE | DB_INIT_LOCK | DB_INIT_MPOOL, 0)) != 0) { - cerr << "failure: " << dbenv->strerror(dberr); - exit (1); -}</pre></blockquote> -<p>Here's a Java example creating a Berkeley DB environment using the 2.X interface: -<p><blockquote><pre>int dberr; -DbEnv dbenv = new DbEnv(); -<p> -dbenv.set_error_stream(System.err); -dbenv.set_errpfx("myprog"); -<p> -dbenv.appinit("/database/home", - null, Db.DB_CREATE | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>int dberr; -DbEnv dbenv = new DbEnv(0); -<p> -dbenv.set_error_stream(System.err); -dbenv.set_errpfx("myprog"); -<p> -dbenv.open("/database/home", - null, Db.DB_CREATE | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL, 0);</pre></blockquote> -<p>In the Berkeley DB 2.X release, DbEnv had accessors to obtain "managers" of type -DbTxnMgr, DbMpool, DbLog, DbTxnMgr. If you used any of these managers, -all their methods are now found directly in the DbEnv class. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/value_set.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/dbinfo.html b/bdb/docs/ref/upgrade.3.0/dbinfo.html deleted file mode 100644 index da1f8460d80..00000000000 --- a/bdb/docs/ref/upgrade.3.0/dbinfo.html +++ /dev/null @@ -1,72 +0,0 @@ -<!--$Id: dbinfo.so,v 11.8 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: the DBINFO structure</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/db.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/join.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: the DBINFO structure</h1> -<p>The DB_INFO structure has been removed from the Berkeley DB 3.0 release. -Accesses to any fields within that structure by the application should be -replaced with method calls on the DB handle. The following -example illustrates this using the historic db_cachesize structure field. -In the Berkeley DB 2.X releases, applications could set the size of an -underlying database cache using code similar to the following: -<p><blockquote><pre>DB_INFO dbinfo; -<p> - memset(dbinfo, 0, sizeof(dbinfo)); - dbinfo.db_cachesize = 1024 * 1024;</pre></blockquote> -<p>in the Berkeley DB 3.X releases, this should be done using the -<a href="../../api_c/db_set_cachesize.html">DB->set_cachesize</a> method, as follows: -<p><blockquote><pre>DB *db; -int ret; -<p> - ret = db->set_cachesize(db, 0, 1024 * 1024, 0);</pre></blockquote> -<p>The DB_INFO structure is no longer used in any way by the Berkeley DB 3.0 -release, and should be removed from the application. -<p>The following table lists the DB_INFO fields previously used by -applications and the methods that should now be used to set -them. Because these calls provide configuration for the -database open, they must precede the call to <a href="../../api_c/db_open.html">DB->open</a>. -Calling them after the call to <a href="../../api_c/db_open.html">DB->open</a> will return an -error. -<p><table border=1 align=center> -<tr><th>DB_INFO field</th><th>Berkeley DB 3.X method</th></tr> -<tr><td>bt_compare</td><td><a href="../../api_c/db_set_bt_compare.html">DB->set_bt_compare</a></td></tr> -<tr><td>bt_minkey</td><td><a href="../../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a></td></tr> -<tr><td>bt_prefix</td><td><a href="../../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a></td></tr> -<tr><td>db_cachesize</td><td><a href="../../api_c/db_set_cachesize.html">DB->set_cachesize</a> -<p>Note: the <a href="../../api_c/db_set_cachesize.html">DB->set_cachesize</a> function takes additional arguments. -Setting both the second argument (the number of GB in the pool) and the -last argument (the number of memory pools to create) to 0 will result in -behavior that is backward compatible with previous Berkeley DB releases.</td></tr> -<tr><td>db_lorder</td><td><a href="../../api_c/db_set_lorder.html">DB->set_lorder</a></td></tr> -<tr><td>db_malloc</td><td><a href="../../api_c/db_set_malloc.html">DB->set_malloc</a></td></tr> -<tr><td>db_pagesize</td><td><a href="../../api_c/db_set_pagesize.html">DB->set_pagesize</a></td></tr> -<tr><td>dup_compare</td><td><a href="../../api_c/db_set_dup_compare.html">DB->set_dup_compare</a></td></tr> -<tr><td>flags</td><td><a href="../../api_c/db_set_flags.html">DB->set_flags</a> -<p>Note: the DB_DELIMITER, DB_FIXEDLEN and DB_PAD flags no longer need to be -set as there are specific methods off the DB handle that set the -file delimiter, the length of fixed-length records and the fixed-length -record pad character. They should simply be discarded from the application.</td></tr> -<tr><td>h_ffactor</td><td><a href="../../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a></td></tr> -<tr><td>h_hash</td><td><a href="../../api_c/db_set_h_hash.html">DB->set_h_hash</a></td></tr> -<tr><td>h_nelem</td><td><a href="../../api_c/db_set_h_nelem.html">DB->set_h_nelem</a></td></tr> -<tr><td>re_delim</td><td><a href="../../api_c/db_set_re_delim.html">DB->set_re_delim</a></td></tr> -<tr><td>re_len</td><td><a href="../../api_c/db_set_re_len.html">DB->set_re_len</a></td></tr> -<tr><td>re_pad</td><td><a href="../../api_c/db_set_re_pad.html">DB->set_re_pad</a></td></tr> -<tr><td>re_source</td><td><a href="../../api_c/db_set_re_source.html">DB->set_re_source</a></td></tr> -</table> -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/db.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/join.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/disk.html b/bdb/docs/ref/upgrade.3.0/disk.html deleted file mode 100644 index f6ea2799be9..00000000000 --- a/bdb/docs/ref/upgrade.3.0/disk.html +++ /dev/null @@ -1,30 +0,0 @@ -<!--$Id: disk.so,v 11.15 2000/12/21 18:37:09 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: upgrade requirements</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.1/intro.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: upgrade requirements</h1> -<p>Log file formats and the Btree, Recno and Hash Access Method database -formats changed in the Berkeley DB 3.0 release. (The on-disk Btree/Recno -format changed from version 6 to version 7. The on-disk Hash format -changed from version 5 to version 6.) Until the underlying databases -are upgraded, the <a href="../../api_c/db_open.html">DB->open</a> function will return a <a href="../../api_c/db_open.html#DB_OLD_VERSION">DB_OLD_VERSION</a> -error. -<p>For further information on upgrading Berkeley DB installations, see -<a href="../../ref/upgrade/process.html">Upgrading Berkeley DB -installations</a>. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.1/intro.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/eacces.html b/bdb/docs/ref/upgrade.3.0/eacces.html deleted file mode 100644 index b7fb3e8598a..00000000000 --- a/bdb/docs/ref/upgrade.3.0/eacces.html +++ /dev/null @@ -1,28 +0,0 @@ -<!--$Id: eacces.so,v 11.7 2000/12/01 17:58:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: EACCES</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/eagain.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/jump_set.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: EACCES</h1> -<p>There was an error in previous releases of the Berkeley DB documentation that -said that the <a href="../../api_c/lock_put.html">lock_put</a> and <a href="../../api_c/lock_vec.html">lock_vec</a> interfaces could -return EACCES as an error to indicate that a lock could not be released -because it was held by another locker. The application should be -searched for any occurrences of EACCES. For each of these, any that are -checking for an error return from <a href="../../api_c/lock_put.html">lock_put</a> or <a href="../../api_c/lock_vec.html">lock_vec</a> -should have the test and any error handling removed. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/eagain.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/jump_set.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/eagain.html b/bdb/docs/ref/upgrade.3.0/eagain.html deleted file mode 100644 index e998c1b4351..00000000000 --- a/bdb/docs/ref/upgrade.3.0/eagain.html +++ /dev/null @@ -1,34 +0,0 @@ -<!--$Id: eagain.so,v 11.5 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: EAGAIN</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/eacces.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: EAGAIN</h1> -<p>Historically, the Berkeley DB interfaces have returned the POSIX error value -EAGAIN to indicate a deadlock. This has been removed from the Berkeley DB 3.0 -release in order to make it possible for applications to distinguish -between EAGAIN errors returned by the system and returns from Berkeley DB -indicating deadlock. -<p>The application should be searched for any occurrences of EAGAIN. For -each of these, any that are checking for a deadlock return from Berkeley DB -should be changed to check for the DB_LOCK_DEADLOCK return value. -<p>If, for any reason, this is a difficult change for the application to -make, the <b>include/db.src</b> distribution file should be modified to -translate all returns of DB_LOCK_DEADLOCK to EAGAIN. Search for the -string EAGAIN in that file, there is a comment that describes how to make -the change. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/eacces.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/envopen.html b/bdb/docs/ref/upgrade.3.0/envopen.html deleted file mode 100644 index 3c20a0e9e21..00000000000 --- a/bdb/docs/ref/upgrade.3.0/envopen.html +++ /dev/null @@ -1,156 +0,0 @@ -<!--$Id: envopen.so,v 11.12 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: environment open/close/unlink</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/func.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: environment open/close/unlink</h1> -<p>The hardest part of upgrading your application from a 2.X code base to -the 3.0 release is translating the Berkeley DB environment open, close and -remove calls. -<p>There were two logical changes in this part of the Berkeley DB interface. -First, in Berkeley DB 3.0, there are no longer separate structures that -represent each subsystem (e.g., DB_LOCKTAB or DB_TXNMGR) and an overall -DB_ENV environment structure. Instead there is only the -DB_ENV structure. This means that DB_ENV references should -be passed around by your application instead of passing around DB_LOCKTAB -or DB_TXNMGR references. This is likely to be a simple change for most -applications as few applications use the lock_XXX, log_XXX, -memp_XXX or txn_XXX interfaces to create Berkeley DB environments. -<p>The second change is that there are no longer separate open, close, and -unlink interfaces to the -Berkeley DB subsystems, e.g., in previous releases, it was possible to open a -lock subsystem either using db_appinit or using the lock_open call. In -the 3.0 release the XXX_open interfaces to the subsystems have been -removed, and subsystems must now be opened using the 3.0 replacement for the -db_appinit call. -<p>To upgrade your application, first find each place your application opens, -closes and/or removes a Berkeley DB environment. This will be code of the form: -<p><blockquote><pre>db_appinit, db_appexit -lock_open, lock_close, lock_unlink -log_open, log_close, log_unlink -memp_open, memp_close, memp_unlink -txn_open, txn_close, txn_unlink</pre></blockquote> -<p>Each of these groups of calls should be replaced with calls to: -<p><blockquote><pre><a href="../../api_c/env_create.html">db_env_create</a>, <a href="../../api_c/env_open.html">DBENV->open</a>, <a href="../../api_c/env_close.html">DBENV->close</a>, -<a href="../../api_c/env_remove.html">DBENV->remove</a></pre></blockquote> -<p>The <a href="../../api_c/env_create.html">db_env_create</a> call and the call to the <a href="../../api_c/env_open.html">DBENV->open</a> -method replace the db_appinit, lock_open, log_open, memp_open and txn_open -calls. The <a href="../../api_c/env_close.html">DBENV->close</a> method replaces the db_appexit, -lock_close, log_close, memp_close and txn_close calls. The -<a href="../../api_c/env_remove.html">DBENV->remove</a> call replaces the lock_unlink, log_unlink, -memp_unlink and txn_unlink calls. -<p>Here's an example creating a Berkeley DB environment using the 2.X interface: -<p><blockquote><pre>/* - * db_init -- - * Initialize the environment. - */ -DB_ENV * -db_init(home) - char *home; -{ - DB_ENV *dbenv; -<p> - if ((dbenv = (DB_ENV *)calloc(sizeof(DB_ENV), 1)) == NULL) - return (errno); -<p> - if ((errno = db_appinit(home, NULL, dbenv, - DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | - DB_USE_ENVIRON)) == 0) - return (dbenv); -<p> - free(dbenv); - return (NULL); -}</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>/* - * db_init -- - * Initialize the environment. - */ -int -db_init(home, dbenvp) - char *home; - DB_ENV **dbenvp; -{ - int ret; - DB_ENV *dbenv; -<p> - if ((ret = db_env_create(&dbenv, 0)) != 0) - return (ret); -<p> - if ((ret = dbenv->open(dbenv, home, NULL, - DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | - DB_USE_ENVIRON, 0)) == 0) { - *dbenvp = dbenv; - return (0); - } -<p> - (void)dbenv->close(dbenv, 0); - return (ret); -}</pre></blockquote> -<p>As you can see, the arguments to db_appinit and to <a href="../../api_c/env_open.html">DBENV->open</a> are -largely the same. There is some minor re-organization: the mapping is -that arguments #1, 2, 3, and 4 to db_appinit become arguments #2, 3, 1 -and 4 to <a href="../../api_c/env_open.html">DBENV->open</a>. There is one additional argument to -<a href="../../api_c/env_open.html">DBENV->open</a>, argument #5. For backward compatibility with the 2.X -Berkeley DB releases, simply set that argument to 0. -<p>It is only slightly more complex to translate calls to XXX_open to the -<a href="../../api_c/env_open.html">DBENV->open</a> method. Here's an example of creating a lock region -using the 2.X interface: -<p><blockquote><pre>lock_open(dir, DB_CREATE, 0664, dbenv, ®ionp);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>if ((ret = db_env_create(&dbenv, 0)) != 0) - return (ret); -<p> -if ((ret = dbenv->open(dbenv, - dir, NULL, DB_CREATE | DB_INIT_LOCK, 0664)) == 0) { - *dbenvp = dbenv; - return (0); -}</pre></blockquote> -<p>Note that in this example, you no longer need the DB_LOCKTAB structure -reference that was required in Berkeley DB 2.X releases. -<p>The final issue with upgrading the db_appinit call is the DB_MPOOL_PRIVATE -option previously provided for the db_appinit interface. If your -application is using this flag, it should almost certainly use the new -<a href="../../api_c/env_open.html#DB_PRIVATE">DB_PRIVATE</a> flag to the <a href="../../api_c/env_open.html">DBENV->open</a> interface. Regardless, -you should carefully consider this change before converting to use the -<a href="../../api_c/env_open.html#DB_PRIVATE">DB_PRIVATE</a> flag. -<p>Translating db_appexit or XXX_close calls to <a href="../../api_c/env_close.html">DBENV->close</a> is equally -simple. Instead of taking a reference to a per-subsystem structure such -as DB_LOCKTAB or DB_TXNMGR, all calls take a reference to a DB_ENV -structure. The calling sequence is otherwise unchanged. Note that as -the application no longer allocates the memory for the DB_ENV structure, -application code to discard it after the call to db_appexit() is no longer -needed. -<p>Translating XXX_unlink calls to <a href="../../api_c/env_remove.html">DBENV->remove</a> is slightly more complex. -As with <a href="../../api_c/env_close.html">DBENV->close</a>, the call takes a reference to a DB_ENV -structure instead of a per-subsystem structure. The calling sequence is -slightly different, however. Here is an example of removing a lock region -using the 2.X interface: -<p><blockquote><pre>DB_ENV *dbenv; -<p> -ret = lock_unlink(dir, 1, dbenv);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code fragment would be written as: -<p><blockquote><pre>DB_ENV *dbenv; -<p> -ret = dbenv->remove(dbenv, dir, NULL, DB_FORCE);</pre></blockquote> -<p>The additional argument to the <a href="../../api_c/env_remove.html">DBENV->remove</a> function is a -configuration argument similar to that previously taken by db_appinit and -now taken by the <a href="../../api_c/env_open.html">DBENV->open</a> method. For backward compatibility -this new argument should simply be set to NULL. The force argument to -XXX_unlink is now a flag value that is set by bitwise inclusively <b>OR</b>'ing it the -<a href="../../api_c/env_remove.html">DBENV->remove</a> flag argument. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/func.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/func.html b/bdb/docs/ref/upgrade.3.0/func.html deleted file mode 100644 index b6f7d816b49..00000000000 --- a/bdb/docs/ref/upgrade.3.0/func.html +++ /dev/null @@ -1,69 +0,0 @@ -<!--$Id: func.so,v 11.8 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: function arguments</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/envopen.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbenv.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: function arguments</h1> -<p>In Berkeley DB 3.0, there are no longer separate structures that -represent each subsystem (e.g., DB_LOCKTAB or DB_TXNMGR), and an overall -DB_ENV environment structure. Instead there is only the -DB_ENV structure. This means that DB_ENV references should -be passed around by your application instead of passing around DB_LOCKTAB -or DB_TXNMGR references. -<p>Each of the following functions: -<p><blockquote><pre>lock_detect -lock_get -lock_id -lock_put -lock_stat -lock_vec</pre></blockquote> -<p>should have its first argument, a reference to the DB_LOCKTAB structure, -replaced with a reference to the enclosing DB_ENV structure. For -example, the following line of code from a Berkeley DB 2.X application: -<p><blockquote><pre>DB_LOCKTAB *lt; -DB_LOCK lock; - ret = lock_put(lt, lock);</pre></blockquote> -<p>should now be written as follows: -<p><blockquote><pre>DB_ENV *dbenv; -DB_LOCK *lock; - ret = lock_put(dbenv, lock);</pre></blockquote> -<p>Similarly, all of the functions: -<p><blockquote><pre>log_archive -log_compare -log_file -log_flush -log_get -log_put -log_register -log_stat -log_unregister</pre></blockquote> -<p>should have their DB_LOG argument replaced with a reference to a -DB_ENV structure, and the functions: -<p><blockquote><pre>memp_fopen -memp_register -memp_stat -memp_sync -memp_trickle</pre></blockquote> -<p>should have their DB_MPOOL argument replaced with a reference to a -DB_ENV structure. -<p>You should remove all references to DB_LOCKTAB, DB_LOG, DB_MPOOL, and -DB_TXNMGR structures from your application, they are no longer useful -in any way. In fact, a simple way to identify all of the places that -need to be upgraded is to remove all such structures and variables -they declare, and then compile. You will see a warning message from -your compiler in each case that needs to be upgraded. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/envopen.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbenv.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/intro.html b/bdb/docs/ref/upgrade.3.0/intro.html deleted file mode 100644 index a74e40f4ee7..00000000000 --- a/bdb/docs/ref/upgrade.3.0/intro.html +++ /dev/null @@ -1,26 +0,0 @@ -<!--$Id: intro.so,v 11.6 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: introduction</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> - <a name="2"><!--meow--></a> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.2.0/disk.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/envopen.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: introduction</h1> -<p>The following pages describe how to upgrade applications coded against -the Berkeley DB 2.X release interfaces to the Berkeley DB 3.0 release interfaces. -This information does not describe how to upgrade Berkeley DB 1.85 release -applications. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.2.0/disk.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/envopen.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/java.html b/bdb/docs/ref/upgrade.3.0/java.html deleted file mode 100644 index 3997095bc96..00000000000 --- a/bdb/docs/ref/upgrade.3.0/java.html +++ /dev/null @@ -1,34 +0,0 @@ -<!--$Id: java.so,v 11.8 2000/12/01 18:33:56 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: additional Java changes</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/disk.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: additional Java changes</h1> -<p>There are several additional types of exceptions thrown in the Berkeley DB 3.0 -Java API. -<p>DbMemoryException and DbDeadlockException can be caught independently of -DbException if you want to do special handling for these kinds of errors. -Since they are subclassed from DbException, a try block that catches -DbException will catch these also, so code is not required to change. -The catch clause for these new exceptions should appear before the catch -clause for DbException. -<p>You will need to add a catch clause for java.io.FileNotFoundException, -since that can be thrown by the <a href="../../api_java/db_open.html">Db.open</a> and <a href="../../api_java/env_open.html">DbEnv.open</a> functions. -<p>There are a number of smaller changes to the API that bring the C, C++ -and Java APIs much closer in terms of functionality and usage. Please -refer to the pages for upgrading C applications for further details. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/disk.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/join.html b/bdb/docs/ref/upgrade.3.0/join.html deleted file mode 100644 index 82c9019fa1b..00000000000 --- a/bdb/docs/ref/upgrade.3.0/join.html +++ /dev/null @@ -1,28 +0,0 @@ -<!--$Id: join.so,v 11.9 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: DB->join</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/dbinfo.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: DB->join</h1> -<p>Historically, the last two arguments to the Berkeley DB <a href="../../api_c/db_join.html">DB->join</a> -interface were a flags value followed by a reference to a memory location -to store the returned cursor object. In the Berkeley DB 3.0 release, the -order of those two arguments has been swapped for consistency with other -Berkeley DB interfaces. -<p>The application should be searched for any occurrences of <a href="../../api_c/db_join.html">DB->join</a>. -For each of these, the order of the last two arguments should be swapped. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/dbinfo.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/jump_set.html b/bdb/docs/ref/upgrade.3.0/jump_set.html deleted file mode 100644 index c93e7270ee6..00000000000 --- a/bdb/docs/ref/upgrade.3.0/jump_set.html +++ /dev/null @@ -1,48 +0,0 @@ -<!--$Id: jump_set.so,v 11.6 2000/03/18 21:43:20 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: db_jump_set</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/eacces.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/value_set.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: db_jump_set</h1> -<p>The db_jump_set interface has been removed from the Berkeley DB 3.0 release, -replaced by method calls on the DB_ENV handle. -<p>The following table lists the db_jump_set arguments previously used by -applications and the methods that should now be used instead. -<p><table border=1 align=center> -<tr><th>db_jump_set argument</th><th>Berkeley DB 3.X method</th></tr> -<tr><td>DB_FUNC_CLOSE</td><td><a href="../../api_c/set_func_close.html">db_env_set_func_close</a></td></tr> -<tr><td>DB_FUNC_DIRFREE</td><td><a href="../../api_c/set_func_dirfree.html">db_env_set_func_dirfree</a></td></tr> -<tr><td>DB_FUNC_DIRLIST</td><td><a href="../../api_c/set_func_dirlist.html">db_env_set_func_dirlist</a></td></tr> -<tr><td>DB_FUNC_EXISTS</td><td><a href="../../api_c/set_func_exists.html">db_env_set_func_exists</a></td></tr> -<tr><td>DB_FUNC_FREE</td><td><a href="../../api_c/set_func_free.html">db_env_set_func_free</a></td></tr> -<tr><td>DB_FUNC_FSYNC</td><td><a href="../../api_c/set_func_fsync.html">db_env_set_func_fsync</a></td></tr> -<tr><td>DB_FUNC_IOINFO</td><td><a href="../../api_c/set_func_ioinfo.html">db_env_set_func_ioinfo</a></td></tr> -<tr><td>DB_FUNC_MALLOC</td><td><a href="../../api_c/set_func_malloc.html">db_env_set_func_malloc</a></td></tr> -<tr><td>DB_FUNC_MAP</td><td><a href="../../api_c/set_func_map.html">db_env_set_func_map</a></td></tr> -<tr><td>DB_FUNC_OPEN</td><td><a href="../../api_c/set_func_open.html">db_env_set_func_open</a></td></tr> -<tr><td>DB_FUNC_READ</td><td><a href="../../api_c/set_func_read.html">db_env_set_func_read</a></td></tr> -<tr><td>DB_FUNC_REALLOC</td><td><a href="../../api_c/set_func_realloc.html">db_env_set_func_realloc</a></td></tr> -<tr><td>DB_FUNC_RUNLINK</td><td>The DB_FUNC_RUNLINK functionality has been removed from the Berkeley DB -3.0 release, and should be removed from the application.</td></tr> -<tr><td>DB_FUNC_SEEK</td><td><a href="../../api_c/set_func_seek.html">db_env_set_func_seek</a></td></tr> -<tr><td>DB_FUNC_SLEEP</td><td><a href="../../api_c/set_func_sleep.html">db_env_set_func_sleep</a></td></tr> -<tr><td>DB_FUNC_UNLINK</td><td><a href="../../api_c/set_func_unlink.html">db_env_set_func_unlink</a></td></tr> -<tr><td>DB_FUNC_UNMAP</td><td><a href="../../api_c/set_func_unmap.html">db_env_set_func_unmap</a></td></tr> -<tr><td>DB_FUNC_WRITE</td><td><a href="../../api_c/set_func_write.html">db_env_set_func_write</a></td></tr> -<tr><td>DB_FUNC_YIELD</td><td><a href="../../api_c/set_func_yield.html">db_env_set_func_yield</a></td></tr> -</table> -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/eacces.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/value_set.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/lock_detect.html b/bdb/docs/ref/upgrade.3.0/lock_detect.html deleted file mode 100644 index 4ff00a8a6b0..00000000000 --- a/bdb/docs/ref/upgrade.3.0/lock_detect.html +++ /dev/null @@ -1,24 +0,0 @@ -<!--$Id: lock_detect.so,v 11.8 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: lock_detect</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/lock_put.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: lock_detect</h1> -<p>An additional argument has been added to the <a href="../../api_c/lock_detect.html">lock_detect</a> interface. -<p>The application should be searched for any occurrences of <a href="../../api_c/lock_detect.html">lock_detect</a>. -For each one, a NULL argument should be appended to the current arguments. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/lock_put.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/lock_notheld.html b/bdb/docs/ref/upgrade.3.0/lock_notheld.html deleted file mode 100644 index 3f11738563e..00000000000 --- a/bdb/docs/ref/upgrade.3.0/lock_notheld.html +++ /dev/null @@ -1,27 +0,0 @@ -<!--$Id: lock_notheld.so,v 11.7 2000/12/01 17:58:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: DB_LOCK_NOTHELD</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/rmw.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/eagain.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: DB_LOCK_NOTHELD</h1> -<p>Historically, the Berkeley DB <a href="../../api_c/lock_put.html">lock_put</a> and <a href="../../api_c/lock_vec.html">lock_vec</a> interfaces -could return the DB_LOCK_NOTHELD error to indicate that a lock could -not be released as it was held by another locker. This error can no -longer be returned under any circumstances. The application should be -searched for any occurrences of DB_LOCK_NOTHELD. For each of these, -the test and any error processing should be removed. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/rmw.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/eagain.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/lock_put.html b/bdb/docs/ref/upgrade.3.0/lock_put.html deleted file mode 100644 index d6057f8e291..00000000000 --- a/bdb/docs/ref/upgrade.3.0/lock_put.html +++ /dev/null @@ -1,25 +0,0 @@ -<!--$Id: lock_put.so,v 11.8 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: lock_put</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/close.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_detect.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: lock_put</h1> -<p>An argument change has been made in the <a href="../../api_c/lock_put.html">lock_put</a> interface. -<p>The application should be searched for any occurrences of <a href="../../api_c/lock_put.html">lock_put</a>. -For each one, instead of passing a DB_LOCK variable as the last argument -to the function, the address of the DB_LOCK variable should be passed. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/close.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_detect.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/lock_stat.html b/bdb/docs/ref/upgrade.3.0/lock_stat.html deleted file mode 100644 index 80504db3bdf..00000000000 --- a/bdb/docs/ref/upgrade.3.0/lock_stat.html +++ /dev/null @@ -1,24 +0,0 @@ -<!--$Id: lock_stat.so,v 11.3 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: lock_stat</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/lock_detect.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/log_register.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: lock_stat</h1> -<p>The <b>st_magic</b>, <b>st_version</b>, <b>st_numobjs</b> and -<b>st_refcnt</b> fields returned from the <a href="../../api_c/lock_stat.html">lock_stat</a> interface -have been removed, and this information is no longer available. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/lock_detect.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/log_register.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/log_register.html b/bdb/docs/ref/upgrade.3.0/log_register.html deleted file mode 100644 index 3a856275ff0..00000000000 --- a/bdb/docs/ref/upgrade.3.0/log_register.html +++ /dev/null @@ -1,25 +0,0 @@ -<!--$Id: log_register.so,v 11.8 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: log_register</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/lock_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/log_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: log_register</h1> -<p>An argument has been removed from the <a href="../../api_c/log_register.html">log_register</a> interface. -The application should be searched for any occurrences of -<a href="../../api_c/log_register.html">log_register</a>. In each of these, the DBTYPE argument (it is the -fourth argument) should be removed. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/lock_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/log_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/log_stat.html b/bdb/docs/ref/upgrade.3.0/log_stat.html deleted file mode 100644 index 8c023bfe26f..00000000000 --- a/bdb/docs/ref/upgrade.3.0/log_stat.html +++ /dev/null @@ -1,23 +0,0 @@ -<!--$Id: log_stat.so,v 11.3 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: log_stat</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/log_register.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/memp_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: log_stat</h1> -<p>The <b>st_refcnt</b> field returned from the <a href="../../api_c/log_stat.html">log_stat</a> interface -has been removed, and this information is no longer available. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/log_register.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/memp_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/memp_stat.html b/bdb/docs/ref/upgrade.3.0/memp_stat.html deleted file mode 100644 index ff61fa745d6..00000000000 --- a/bdb/docs/ref/upgrade.3.0/memp_stat.html +++ /dev/null @@ -1,26 +0,0 @@ -<!--$Id: memp_stat.so,v 11.3 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: memp_stat</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/log_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_begin.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: memp_stat</h1> -<p>The <b>st_refcnt</b> field returned from the <a href="../../api_c/memp_stat.html">memp_stat</a> interface -has been removed, and this information is no longer available. -<p>The <b>st_cachesize</b> field returned from the <a href="../../api_c/memp_stat.html">memp_stat</a> -interface has been replaced with two new fields, <b>st_gbytes</b> and -<b>st_bytes</b>. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/log_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_begin.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/open.html b/bdb/docs/ref/upgrade.3.0/open.html deleted file mode 100644 index 3730ab4749d..00000000000 --- a/bdb/docs/ref/upgrade.3.0/open.html +++ /dev/null @@ -1,65 +0,0 @@ -<!--$Id: open.so,v 11.10 2000/03/18 21:43:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: database open/close</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/dbenv.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/xa.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: database open/close</h1> -<p>Database opens were changed in the Berkeley DB 3.0 release in a similar way to -environment opens. -<p>To upgrade your application, first find each place your application opens -a database, that is, calls the db_open function. Each of these calls -should be replaced with calls to <a href="../../api_c/db_create.html">db_create</a> and <a href="../../api_c/db_open.html">DB->open</a>. -<p>Here's an example creating a Berkeley DB database using the 2.X interface: -<p><blockquote><pre>DB *dbp; -DB_ENV *dbenv; -int ret; -<p> -if ((ret = db_open(DATABASE, - DB_BTREE, DB_CREATE, 0664, dbenv, NULL, &dbp)) != 0) - return (ret);</pre></blockquote> -<p>In the Berkeley DB 3.0 release, this code would be written as: -<p><blockquote><pre>DB *dbp; -DB_ENV *dbenv; -int ret; -<p> -if ((ret = db_create(&dbp, dbenv, 0)) != 0) - return (ret); -<p> -if ((ret = dbp->open(dbp, - DATABASE, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { - (void)dbp->close(dbp, 0); - return (ret); -}</pre></blockquote> -<p>As you can see, the arguments to db_open and to <a href="../../api_c/db_open.html">DB->open</a> are -largely the same. There is some re-organization, and note that the -enclosing DB_ENV structure is specified when the DB object -is created using the <a href="../../api_c/db_create.html">db_create</a> interface. There is one -additional argument to <a href="../../api_c/db_open.html">DB->open</a>, argument #3. For backward -compatibility with the 2.X Berkeley DB releases, simply set that argument to -NULL. -<p>There are two additional issues with the db_open call. -<p>First, it was possible in the 2.X releases for an application to provide -an environment that did not contain a shared memory buffer pool as the -database environment, and Berkeley DB would create a private one automatically. -This functionality is no longer available, applications must specify the -<a href="../../api_c/env_open.html#DB_INIT_MPOOL">DB_INIT_MPOOL</a> flag if databases are going to be opened in the -environment. -<p>The final issue with upgrading the db_open call is that the DB_INFO -structure is no longer used, having been replaced by individual methods -on the DB handle. That change is discussed in detail later in -this chapter. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/dbenv.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/xa.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/rmw.html b/bdb/docs/ref/upgrade.3.0/rmw.html deleted file mode 100644 index a1a30da5ecf..00000000000 --- a/bdb/docs/ref/upgrade.3.0/rmw.html +++ /dev/null @@ -1,31 +0,0 @@ -<!--$Id: rmw.so,v 11.9 2000/03/18 21:43:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: DB_RMW</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/txn_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_notheld.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: DB_RMW</h1> -<p>The following change applies only to applications using the -Berkeley DB Concurrent Data Store product. If your application is not using that product, -you can ignore this change. -<p>Historically, the Berkeley DB <a href="../../api_c/db_cursor.html">DB->cursor</a> interface took the DB_RMW flag -to indicate that the created cursor would be used for write operations on -the database. This flag has been renamed to the <a href="../../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a> -flag. -<p>The application should be searched for any occurrences of DB_RMW. For -each of these, any that are arguments to the <a href="../../api_c/db_cursor.html">DB->cursor</a> function -should be changed to pass in the <a href="../../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a> flag instead. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/txn_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/lock_notheld.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/stat.html b/bdb/docs/ref/upgrade.3.0/stat.html deleted file mode 100644 index 735e235d9cd..00000000000 --- a/bdb/docs/ref/upgrade.3.0/stat.html +++ /dev/null @@ -1,24 +0,0 @@ -<!--$Id: stat.so,v 11.3 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: DB->stat</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/join.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/close.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: DB->stat</h1> -<p>The <b>bt_flags</b> field returned from the <a href="../../api_c/db_stat.html">DB->stat</a> interface -for Btree and Recno databases has been removed, and this information is -no longer available. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/join.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/close.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/toc.html b/bdb/docs/ref/upgrade.3.0/toc.html deleted file mode 100644 index 189d7c0a657..00000000000 --- a/bdb/docs/ref/upgrade.3.0/toc.html +++ /dev/null @@ -1,47 +0,0 @@ -<!--$Id: toc.so,v 11.2 2000/12/05 20:36:26 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB: Upgrading Berkeley DB 2.X.X applications to Berkeley DB 3.0</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<h1 align=center>Upgrading Berkeley DB 2.X.X applications to Berkeley DB 3.0</h1> -<ol> -<li><a href="intro.html">Release 3.0: introduction</a> -<li><a href="envopen.html">Release 3.0: environment open/close/unlink</a> -<li><a href="func.html">Release 3.0: function arguments</a> -<li><a href="dbenv.html">Release 3.0: the DB_ENV structure</a> -<li><a href="open.html">Release 3.0: database open/close</a> -<li><a href="xa.html">Release 3.0: db_xa_open</a> -<li><a href="db.html">Release 3.0: the DB structure</a> -<li><a href="dbinfo.html">Release 3.0: the DBINFO structure</a> -<li><a href="join.html">Release 3.0: DB->join</a> -<li><a href="stat.html">Release 3.0: DB->stat</a> -<li><a href="close.html">Release 3.0: DB->sync and DB->close</a> -<li><a href="lock_put.html">Release 3.0: lock_put</a> -<li><a href="lock_detect.html">Release 3.0: lock_detect</a> -<li><a href="lock_stat.html">Release 3.0: lock_stat</a> -<li><a href="log_register.html">Release 3.0: log_register</a> -<li><a href="log_stat.html">Release 3.0: log_stat</a> -<li><a href="memp_stat.html">Release 3.0: memp_stat</a> -<li><a href="txn_begin.html">Release 3.0: txn_begin</a> -<li><a href="txn_commit.html">Release 3.0: txn_commit</a> -<li><a href="txn_stat.html">Release 3.0: txn_stat</a> -<li><a href="rmw.html">Release 3.0: DB_RMW</a> -<li><a href="lock_notheld.html">Release 3.0: DB_LOCK_NOTHELD</a> -<li><a href="eagain.html">Release 3.0: EAGAIN</a> -<li><a href="eacces.html">Release 3.0: EACCES</a> -<li><a href="jump_set.html">Release 3.0: db_jump_set</a> -<li><a href="value_set.html">Release 3.0: db_value_set</a> -<li><a href="dbenv_cxx.html">Release 3.0: the DbEnv class for C++ and Java</a> -<li><a href="db_cxx.html">Release 3.0: the Db class for C++ and Java</a> -<li><a href="cxx.html">Release 3.0: additional C++ changes</a> -<li><a href="java.html">Release 3.0: additional Java changes</a> -<li><a href="disk.html">Release 3.0: upgrade requirements</a> -</ol> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/txn_begin.html b/bdb/docs/ref/upgrade.3.0/txn_begin.html deleted file mode 100644 index 3fb9a6527d4..00000000000 --- a/bdb/docs/ref/upgrade.3.0/txn_begin.html +++ /dev/null @@ -1,25 +0,0 @@ -<!--$Id: txn_begin.so,v 11.7 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: txn_begin</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/memp_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: txn_begin</h1> -<p>An additional argument has been added to the <a href="../../api_c/txn_begin.html">txn_begin</a> interface. -<p>The application should be searched for any occurrences of -<a href="../../api_c/txn_begin.html">txn_begin</a>. For each one, an argument of 0 should be appended to -the current arguments. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/memp_stat.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/txn_commit.html b/bdb/docs/ref/upgrade.3.0/txn_commit.html deleted file mode 100644 index 8090b1e3b84..00000000000 --- a/bdb/docs/ref/upgrade.3.0/txn_commit.html +++ /dev/null @@ -1,25 +0,0 @@ -<!--$Id: txn_commit.so,v 11.8 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: txn_commit</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/txn_begin.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: txn_commit</h1> -<p>An additional argument has been added to the <a href="../../api_c/txn_commit.html">txn_commit</a> interface. -<p>The application should be searched for any occurrences of -<a href="../../api_c/txn_commit.html">txn_commit</a>. For each one, an argument of 0 should be appended to -the current arguments. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/txn_begin.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/txn_stat.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/txn_stat.html b/bdb/docs/ref/upgrade.3.0/txn_stat.html deleted file mode 100644 index d965494d5ef..00000000000 --- a/bdb/docs/ref/upgrade.3.0/txn_stat.html +++ /dev/null @@ -1,23 +0,0 @@ -<!--$Id: txn_stat.so,v 11.3 2000/07/25 16:59:36 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: txn_stat</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/rmw.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: txn_stat</h1> -<p>The <b>st_refcnt</b> field returned from the <a href="../../api_c/txn_stat.html">txn_stat</a> interface -has been removed, and this information is no longer available. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/txn_commit.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/rmw.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/value_set.html b/bdb/docs/ref/upgrade.3.0/value_set.html deleted file mode 100644 index 66070b09fd6..00000000000 --- a/bdb/docs/ref/upgrade.3.0/value_set.html +++ /dev/null @@ -1,41 +0,0 @@ -<!--$Id: value_set.so,v 11.6 2000/03/18 21:43:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: db_value_set</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/jump_set.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbenv_cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: db_value_set</h1> -<p>The db_value_set interface has been removed from the Berkeley DB 3.0 release, -replaced by method calls on the DB_ENV handle. -<p>The following table lists the db_value_set arguments previously used by -applications and the methods that should now be used instead. -<p><table border=1 align=center> -<tr><th>db_value_set argument</th><th>Berkeley DB 3.X method</th></tr> -<tr><td>DB_MUTEX_LOCKS</td><td><a href="../../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a></td></tr> -<tr><td>DB_REGION_ANON</td><td>The DB_REGION_ANON functionality has -been replaced by the <a href="../../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a> and <a href="../../api_c/env_open.html#DB_PRIVATE">DB_PRIVATE</a> flags -to the <a href="../../api_c/env_open.html">DBENV->open</a> function. A direct translation is not -available, please review the <a href="../../api_c/env_open.html">DBENV->open</a> manual page for more -information.</td></tr> -<tr><td>DB_REGION_INIT</td><td><a href="../../api_c/env_set_region_init.html">db_env_set_region_init</a></td></tr> -<tr><td>DB_REGION_NAME</td><td>The DB_REGION_NAME functionality has -been replaced by the <a href="../../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a> and <a href="../../api_c/env_open.html#DB_PRIVATE">DB_PRIVATE</a> flags -to the <a href="../../api_c/env_open.html">DBENV->open</a> function. A direct translation is not -available, please review the <a href="../../api_c/env_open.html">DBENV->open</a> manual page for more -information.</td></tr> -<tr><td>DB_TSL_SPINS</td><td><a href="../../api_c/env_set_tas_spins.html">db_env_set_tas_spins</a></td></tr> -</table> -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/jump_set.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/dbenv_cxx.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> diff --git a/bdb/docs/ref/upgrade.3.0/xa.html b/bdb/docs/ref/upgrade.3.0/xa.html deleted file mode 100644 index 41f5a993d23..00000000000 --- a/bdb/docs/ref/upgrade.3.0/xa.html +++ /dev/null @@ -1,33 +0,0 @@ -<!--$Id: xa.so,v 11.7 2000/03/18 21:43:21 bostic Exp $--> -<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--> -<!--All rights reserved.--> -<html> -<head> -<title>Berkeley DB Reference Guide: Release 3.0: db_xa_open</title> -<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> -<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> -</head> -<body bgcolor=white> -<table><tr valign=top> -<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> -<td width="1%"><a href="../../ref/upgrade.3.0/open.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/db.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p> -<h1 align=center>Release 3.0: db_xa_open</h1> -<p>The following change applies only to applications using Berkeley DB as an XA -Resource Manager. If your application is not using Berkeley DB in this way, -you can ignore this change. -<p>The db_xa_open function has been replaced with the <a href="../../api_c/db_create.html#DB_XA_CREATE">DB_XA_CREATE</a> -flag to the <a href="../../api_c/db_create.html">db_create</a> function. All calls to db_xa_open should -be replaced with calls to <a href="../../api_c/db_create.html">db_create</a> with the <a href="../../api_c/db_create.html#DB_XA_CREATE">DB_XA_CREATE</a> -flag set, followed by a call to the <a href="../../api_c/db_open.html">DB->open</a> function. -<p>A similar change has been made for the C++ API, where the -<a href="../../api_c/db_create.html#DB_XA_CREATE">DB_XA_CREATE</a> flag should be specified to the Db constructor. All -calls to the Db::xa_open method should be replaced with the -<a href="../../api_c/db_create.html#DB_XA_CREATE">DB_XA_CREATE</a> flag to the Db constructor, followed by a call to -the DB::open method. -<table><tr><td><br></td><td width="1%"><a href="../../ref/upgrade.3.0/open.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/db.html"><img src="../../images/next.gif" alt="Next"></a> -</td></tr></table> -<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> -</body> -</html> |