Lines Matching defs:txn
46 static const char sccsid[] = "@(#)txn.c 10.66 (Sleepycat) 1/3/99";
62 #include "txn.h"
151 /* Join/create the txn region. */
247 DB_TXN *txn;
252 if ((ret = __os_calloc(1, sizeof(DB_TXN), &txn)) != 0)
255 txn->parent = parent;
256 TAILQ_INIT(&txn->kids);
257 txn->mgrp = tmgrp;
258 txn->flags = TXN_MALLOC;
259 if ((ret = __txn_begin(txn)) != 0) {
260 __os_free(txn, sizeof(DB_TXN));
261 txn = NULL;
263 if (txn != NULL && parent != NULL)
264 TAILQ_INSERT_HEAD(&parent->kids, txn, klinks);
265 *txnpp = txn;
276 __txn_xa_begin(dbenv, txn)
278 DB_TXN *txn;
282 memset(txn, 0, sizeof(DB_TXN));
284 txn->mgrp = dbenv->tx_info;
286 return (__txn_begin(txn));
294 __txn_begin(txn)
295 DB_TXN *txn;
310 mgr = txn->mgrp;
347 if (txn->parent != NULL)
348 td->parent = txn->parent->off;
355 ZERO_LSN(txn->last_lsn);
356 txn->txnid = id;
357 txn->off = off;
359 if (F_ISSET(txn, TXN_MALLOC)) {
361 TAILQ_INSERT_TAIL(&mgr->txn_chain, txn, links);