| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>DB_TXN->id()</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> |
| 10 | <link rel="up" href="txn.html" title="Chapter 12. The DB_TXN Handle" /> |
| 11 | <link rel="prev" href="txnget_priority.html" title="DB_TXN->get_priority()" /> |
| 12 | <link rel="next" href="txnprepare.html" title="DB_TXN->prepare()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DB_TXN->id()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="txnget_priority.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 12. |
| 26 | The DB_TXN Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="txnprepare.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="txnid"></a>DB_TXN->id()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | u_int32_t |
| 44 | DB_TXN->id(DB_TXN *tid); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DB_TXN->id()</code> method returns the unique transaction id associated |
| 47 | with the specified transaction. Locking calls made on behalf of this |
| 48 | transaction should use the value returned from <code class="methodname">DB_TXN->id()</code> as the |
| 49 | locker parameter to the <a class="xref" href="lockget.html" title="DB_ENV->lock_get()">DB_ENV->lock_get()</a> |
| 50 | or <a class="xref" href="lockvec.html" title="DB_ENV->lock_vec()">DB_ENV->lock_vec()</a> calls. |
| 51 | </p> |
| 52 | <div class="sect2" lang="en" xml:lang="en"> |
| 53 | <div class="titlepage"> |
| 54 | <div> |
| 55 | <div> |
| 56 | <h3 class="title"><a id="idp54970480"></a>Class</h3> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <p> |
| 61 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a>, <a class="link" href="txn.html" title="Chapter 12. The DB_TXN Handle">DB_TXN</a> |
| 62 | </p> |
| 63 | </div> |
| 64 | <div class="sect2" lang="en" xml:lang="en"> |
| 65 | <div class="titlepage"> |
| 66 | <div> |
| 67 | <div> |
| 68 | <h3 class="title"><a id="idp54965112"></a>See Also</h3> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <p> |
| 73 | <a class="xref" href="txn.html#txnlist" title="Transaction Subsystem and Related Methods">Transaction Subsystem and Related Methods</a> |
| 74 | </p> |
| 75 | </div> |
| 76 | </div> |
| 77 | <div class="navfooter"> |
| 78 | <hr /> |
| 79 | <table width="100%" summary="Navigation footer"> |
| 80 | <tr> |
| 81 | <td width="40%" align="left"><a accesskey="p" href="txnget_priority.html">Prev</a> </td> |
| 82 | <td width="20%" align="center"> |
| 83 | <a accesskey="u" href="txn.html">Up</a> |
| 84 | </td> |
| 85 | <td width="40%" align="right"> <a accesskey="n" href="txnprepare.html">Next</a></td> |
| 86 | </tr> |
| 87 | <tr> |
| 88 | <td width="40%" align="left" valign="top">DB_TXN->get_priority() </td> |
| 89 | <td width="20%" align="center"> |
| 90 | <a accesskey="h" href="index.html">Home</a> |
| 91 | </td> |
| 92 | <td width="40%" align="right" valign="top"> DB_TXN->prepare()</td> |
| 93 | </tr> |
| 94 | </table> |
| 95 | </div> |
| 96 | </body> |
| 97 | </html> |