1<!--$Id: env_cdsgroup_begin.so,v 1.3 2008/04/09 20:31:41 sarette Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB: DB_ENV-&gt;cdsgroup_begin</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td>
13<b>DB_ENV-&gt;cdsgroup_begin</b>
14</td>
15<td align=right>
16<a href="/api_c/api_core.html"><img src="/images/api.gif" alt="API"></a>
17<a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a></td>
18</tr></table>
19<hr size=1 noshade>
20<tt>
21<b><pre>
22#include &lt;db.h&gt;
23<p>
24int
25DB_ENV-&gt;cdsgroup_begin(DB_ENV *dbenv, DB_TXN **tid);
26</pre></b>
27<hr size=1 noshade>
28<b>Description: DB_ENV-&gt;cdsgroup_begin</b>
29<a name="2"><!--meow--></a>
30<p>The DB_ENV-&gt;cdsgroup_begin method allocates a locker ID in an
31environment configured for Berkeley DB Concurrent Data Store applications.  It copies a pointer to
32a <a href="/api_c/txn_class.html">DB_TXN</a> that uniquely identifies the locker ID into the memory
33to which <b>tid</b> refers.  Calling the <a href="/api_c/txn_commit.html">DB_TXN-&gt;commit</a> method will
34discard the allocated locker ID.</p>
35<p>See <a href="/ref/cam/intro.html">Berkeley DB Concurrent Data Store applications</a> for more
36information about when this is required.</p>
37<p>The DB_ENV-&gt;cdsgroup_begin method may be called at any time during the life of the
38application.</p>
39<p>The DB_ENV-&gt;cdsgroup_begin method
40returns a non-zero error value on failure
41and 0 on success.
42</p>
43<br><b>Errors</b>
44<p>The DB_ENV-&gt;cdsgroup_begin method
45may fail and return one of the following non-zero errors:</p>
46<br>
47<b>ENOMEM</b><ul compact><li>The maximum number of lockers has been reached.</ul>
48<br>
49<hr size=1 noshade>
50<br><b>Class</b>
51<a href="/api_c/env_class.html">DB_ENV</a>, <a href="/api_c/txn_class.html">DB_TXN</a>
52<br><b>See Also</b>
53<a href="/api_c/txn_list.html">Transaction Subsystem and Related Methods</a>
54</tt>
55<table width="100%"><tr><td><br></td><td align=right>
56<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>
57</td></tr></table>
58<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
59</body>
60</html>
61