summaryrefslogtreecommitdiff
path: root/db/docs/api_c/log_compare.html
blob: 7f870cfcc859d207b211efbfa913b389086d8ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--$Id: log_compare.so,v 10.22 2004/08/13 03:38:57 bostic Exp $-->
<!--Copyright 1997-2006 by Oracle Corporation-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB: log_compare</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td>
<h3>log_compare</h3>
</td>
<td align=right>
<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a>
<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td>
</tr></table>
<hr size=1 noshade>
<tt>
<h3><pre>
#include &lt;db.h&gt;
<p>
int
log_compare(const DB_LSN *lsn0, const DB_LSN *lsn1);
</pre></h3>
<hr size=1 noshade>
<h3>Description: log_compare</h3>
<p>The log_compare method allows the caller to compare two
DB_LSN structures,
returning 0 if they are equal, 1 if <b>lsn0</b> is greater than
<b>lsn1</b>, and -1 if <b>lsn0</b> is less than <b>lsn1</b>.</p>
<h3>Parameters</h3>
<dl compact>
<dt><b>lsn0</b><dd>The <b>lsn0</b> parameter is one of the
DB_LSN structures
to be compared.
<dt><b>lsn1</b><dd>The <b>lsn1</b> parameter is one of the
DB_LSN structures
to be compared.
</dl>
<hr size=1 noshade>
<h3>Class</h3>
<a href="../api_c/env_class.html">DB_ENV</a>, <a href="../api_c/logc_class.html">DB_LOGC</a>, <a href="../api_c/lsn_class.html">DB_LSN</a>
<h3>See Also</h3>
<a href="../api_c/log_list.html">Logging Subsystem and Related Methods</a>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996-2006 Oracle Corporation - All rights reserved.</font>
</body>
</html>