userinput"><code>txn</code></strong>));

        /* 
         * If all goes well, we can commit the transaction and
         * loop to the next transaction.
         */
        ret = txn-&gt;commit(txn, 0);
        if (ret != 0) {
            envp-&gt;err(envp, ret, "txn commit failed");
            return (EXIT_FAILURE);
        }
    }
    return (EXIT_SUCCESS);
} </pre>
      <p>
    Next we update 
        <span><code class="function">count_records()</code>.</span>
        
    The only difference
    h