h2 class="title" style="clear: both"><a id="txnprepare"></a>DbTxn::prepare()</h2>
          </div>
        </div>
      </div>
      <pre class="programlisting">#include &lt;db_cxx.h&gt;
 
int
DbTxn::prepare(u_int8_t gid[DB_GID_SIZE]);</pre>
      <p>
         The <code class="methodname">DbTxn::prepare()</code> method initiates the beginning of a two-phase
         commit.
    </p>
      <p>
         In a distributed transaction environment, Berkeley DB can be used as a
         local transaction manager. 