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

« back to all changes in this revision

Viewing changes to libdb/docs/api_c/log_stat.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: DB_ENV-&gt;log_stat</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
 
<a name="2"><!--meow--></a>
13
 
<table width="100%"><tr valign=top>
14
 
<td>
15
 
<h1>DB_ENV-&gt;log_stat</h1>
16
 
</td>
17
 
<td align=right>
18
 
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
19
 
</td></tr></table>
20
 
<hr size=1 noshade>
21
 
<tt>
22
 
<h3><pre>
23
 
#include &lt;db.h&gt;
24
 
<p>
25
 
int
26
 
DB_ENV-&gt;log_stat(DB_ENV *env, DB_LOG_STAT **spp, u_int32_t flags);
27
 
</pre></h3>
28
 
<h1>Description</h1>
29
 
<p>The DB_ENV-&gt;log_stat method returns the logging subsystem statistics.
30
 
<p>The <b>flags</b> value must be set to 0 or
31
 
the following value:
32
 
<p><dl compact>
33
 
<p><dt><a name="DB_STAT_CLEAR">DB_STAT_CLEAR</a><dd>Reset statistics after returning their values.
34
 
</dl>
35
 
<p>The DB_ENV-&gt;log_stat method creates a statistical structure of type
36
 
DB_LOG_STAT and copies a pointer to it into a user-specified memory
37
 
location.
38
 
<p>Statistical structures are created in allocated memory.  If application-specific allocation
39
 
routines have been declared (see <a href="../api_c/env_set_alloc.html">DB_ENV-&gt;set_alloc</a> for more
40
 
information), they are used to allocate the memory; otherwise, the
41
 
library <b>malloc</b>(3) interface is used.  The caller is
42
 
responsible for deallocating the memory.  To deallocate the memory, free
43
 
the memory reference; references inside the returned memory need not be
44
 
individually freed.
45
 
<p>The following DB_LOG_STAT fields will be filled in:
46
 
<p><dl compact>
47
 
<dt>u_int32_t st_magic;<dd>The magic number that identifies a file as a log file.
48
 
<dt>u_int32_t st_version;<dd>The version of the log file type.
49
 
<dt>int st_mode;<dd>The mode of any created log files.
50
 
<dt>u_int32_t st_lg_bsize;<dd>The in-memory log record cache size.
51
 
<dt>u_int32_t st_lg_size;<dd>The current log file size.
52
 
<dt>u_int32_t st_w_mbytes;<dd>The number of megabytes written to this log.
53
 
<dt>u_int32_t st_w_bytes;<dd>The number of bytes over and above <b>st_w_mbytes</b> written to this log.
54
 
<dt>u_int32_t st_wc_mbytes;<dd>The number of megabytes written to this log since the last checkpoint.
55
 
<dt>u_int32_t st_wc_bytes;<dd>The number of bytes over and above <b>st_wc_mbytes</b> written to this log
56
 
since the last checkpoint.
57
 
<dt>u_int32_t st_wcount;<dd>The number of times the log has been written to disk.
58
 
<dt>u_int32_t st_wcount_fill;<dd>The number of times the log has been written to disk because the
59
 
in-memory log record cache filled up.
60
 
<dt>u_int32_t st_scount;<dd>The number of times the log has been flushed to disk.
61
 
<dt>u_int32_t st_cur_file;<dd>The current log file number.
62
 
<dt>u_int32_t st_cur_offset;<dd>The byte offset in the current log file.
63
 
<dt>u_int32_t st_disk_file;<dd>The log file number of the last record known to be on disk.
64
 
<dt>u_int32_t st_disk_offset;<dd>The byte offset of the last record known to be on disk.
65
 
<dt>u_int32_t st_cur_offset;<dd>The byte offset of the last record known to be on disk.
66
 
<dt>u_int32_t st_maxcommitperflush;<dd>The maximum number of commits contained in a single log flush.
67
 
<dt>u_int32_t st_mincommitperflush;<dd>The minimum number of commits contained in a single log flush that
68
 
contained a commit.]
69
 
<dt>u_int32_t st_regsize;<dd>The size of the region.
70
 
<dt>u_int32_t st_region_wait;<dd>The number of times that a thread of control was forced to wait before
71
 
obtaining the region lock.
72
 
<dt>u_int32_t st_region_nowait;<dd>The number of times that a thread of control was able to obtain
73
 
the region lock without waiting.
74
 
</dl>
75
 
<p>The DB_ENV-&gt;log_stat method returns a non-zero error value on failure and 0 on success.
76
 
<h1>Errors</h1>
77
 
<p>The DB_ENV-&gt;log_stat method may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
78
 
If a catastrophic error has occurred, the DB_ENV-&gt;log_stat method may fail and
79
 
return <a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>,
80
 
in which case all subsequent Berkeley DB calls will fail in the same way.
81
 
<h1>Class</h1>
82
 
<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>
83
 
<h1>See Also</h1>
84
 
<a href="../api_c/log_list.html">Logging Subsystem and Related Methods</a>
85
 
</tt>
86
 
<table width="100%"><tr><td><br></td><td align=right>
87
 
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
88
 
</td></tr></table>
89
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
90
 
</body>
91
 
</html>