~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick

« back to all changes in this revision

Viewing changes to libdb/docs/ref/upgrade.4.0/log.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id$-->
2
 
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB Reference Guide: Release 4.0: log_XXX</title>
8
 
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
 
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<table width="100%"><tr valign=top>
13
 
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td>
14
 
<td align=right><a href="../../ref/upgrade.4.0/lock.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/mp.html"><img src="../../images/next.gif" alt="Next"></a>
15
 
</td></tr></table>
16
 
<p>
17
 
<h1 align=center>Release 4.0: log_XXX</h1>
18
 
<p>The C API for the Berkeley DB Logging subsystem was reworked in the 4.0
19
 
release as follows:
20
 
<p><table border=1 align=center>
21
 
<tr><th>Historic functional interface</th><th>Berkeley DB 4.X method</th></tr>
22
 
<tr><td>log_archive</td><td><a href="../../api_c/log_archive.html">DB_ENV-&gt;log_archive</a></td></tr>
23
 
<tr><td>log_file</td><td><a href="../../api_c/log_file.html">DB_ENV-&gt;log_file</a></td></tr>
24
 
<tr><td>log_flush</td><td><a href="../../api_c/log_flush.html">DB_ENV-&gt;log_flush</a></td></tr>
25
 
<tr><td>log_get</td><td><a href="../../api_c/log_cursor.html">DB_ENV-&gt;log_cursor</a>, <a href="../../api_c/logc_get.html">DB_LOGC-&gt;get</a>, <a href="../../api_c/logc_close.html">DB_LOGC-&gt;close</a></td></tr>
26
 
<tr><td>log_put</td><td><a href="../../api_c/log_put.html">DB_ENV-&gt;log_put</a></td></tr>
27
 
<tr><td>log_register</td><td>DB_ENV-&gt;log_register</td></tr>
28
 
<tr><td>log_stat</td><td><a href="../../api_c/log_stat.html">DB_ENV-&gt;log_stat</a></td></tr>
29
 
<tr><td>log_unregister</td><td>DB_ENV-&gt;log_unregister</td></tr>
30
 
</table>
31
 
<p>Applications calling any of these functions should update their calls
32
 
to use the enclosing <a href="../../api_c/env_class.html">DB_ENV</a> handle's method (in all cases other
33
 
than the log_get call, this is easily done as the first argument to the
34
 
existing call is the correct handle to use).
35
 
<p>Application calls to the historic log_get interface must be replaced
36
 
with the creation of a log file cursor (a <a href="../../api_c/logc_class.html">DB_LOGC</a> object), using
37
 
the <a href="../../api_c/log_cursor.html">DB_ENV-&gt;log_cursor</a> method, calls to the <a href="../../api_c/logc_get.html">DB_LOGC-&gt;get</a> method to retrieve log
38
 
records and calls to the <a href="../../api_c/logc_close.html">DB_LOGC-&gt;close</a> method to destroy the cursor.  It
39
 
may also be possible to simplify some applications.  In previous
40
 
releases of Berkeley DB, the DB_CURRENT, DB_NEXT, and DB_PREV flags to the
41
 
log_get function could not be used by a free-threaded <a href="../../api_c/env_class.html">DB_ENV</a>
42
 
handle.  If their <a href="../../api_c/env_class.html">DB_ENV</a> handle was free-threaded, applications
43
 
had to create an additional, unique environment handle by separately
44
 
calling <a href="../../api_c/env_open.html">DB_ENV-&gt;open</a> without specifying <a href="../../api_c/env_open.html#DB_THREAD">DB_THREAD</a>.  This
45
 
is no longer an issue in the log cursor interface, and applications may
46
 
be able to remove the now unnecessary creation of the additional
47
 
<a href="../../api_c/env_class.html">DB_ENV</a> object.
48
 
<p>Finally, the <a href="../../api_c/log_stat.html">DB_ENV-&gt;log_stat</a> call has been changed in the 4.0 release
49
 
to take a flags argument.  To leave their historic behavior unchanged,
50
 
applications should add a final argument of 0 to any calls made to
51
 
<a href="../../api_c/log_stat.html">DB_ENV-&gt;log_stat</a>.
52
 
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/upgrade.4.0/lock.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/mp.html"><img src="../../images/next.gif" alt="Next"></a>
53
 
</td></tr></table>
54
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
55
 
</body>
56
 
</html>