Lines Matching +defs:env +defs:open
29 int (*open) __P((DB *, DB_TXN *,
45 ENV *env;
48 env = dbp->env;
54 * other transactions, it can open other DB handles and use them.
58 __db_errx(env,
64 if ((ret = __xa_get_txn(env, txnpp, 0)) != 0)
72 * also reasonable to open a database as part of an XA transaction,
80 __db_errx(env, "no XA transaction declared");
98 * Allocate the XA internal structure, and wrap the open and close
101 if ((ret = __os_calloc(dbp->env, 1, sizeof(XA_METHODS), &xam)) != 0)
105 xam->open = dbp->open;
106 dbp->open = __xa_open;
115 * XA open wrapper.
134 if ((ret = xam->open(dbp, txn, name, subdb, type, flags, mode)) != 0)
190 __os_free(dbp->env, dbp->xa_internal);