Lines Matching defs:env
21 static int __cdsgroup_notsup __P((ENV *env, const char *meth));
32 __cdsgroup_notsup(env, meth)
33 ENV *env;
36 __db_errx(env, "CDS groups do not support %s", meth);
44 return (__cdsgroup_notsup(txn->mgrp->env, "abort"));
54 ENV *env;
58 env = txn->mgrp->env;
62 __db_errx(env, "CDS group has active cursors");
69 ret = __lock_vec(env, txn->locker, 0, &lreq, 1, NULL);
71 env = txn->mgrp->env;
73 __os_free(env, txn->mgrp);
74 __os_free(env, txn);
75 if ((t_ret = __lock_id_free(env, locker)) != 0 && ret == 0)
85 return (__cdsgroup_notsup(txn->mgrp->env, "discard"));
99 return (__cdsgroup_notsup(txn->mgrp->env, "prepare"));
107 return (__cdsgroup_notsup(txn->mgrp->env, "set_name"));
117 return (__cdsgroup_notsup(txn->mgrp->env, "set_timeout"));
133 ENV *env;
136 env = dbenv->env;
138 ENV_ILLEGAL_BEFORE_OPEN(env, "cdsgroup_begin");
139 if (!CDB_LOCKING(env))
140 return (__env_not_config(env, "cdsgroup_begin", DB_INIT_CDB));
142 ENV_ENTER(env, ip);
144 if ((ret = __os_calloc(env, 1, sizeof(DB_TXN), &txn)) != 0)
150 if ((ret = __os_calloc(env, 1, sizeof(DB_TXNMGR), &txn->mgrp)) != 0)
152 txn->mgrp->env = env;
154 if ((ret = __lock_id(env, &txn->txnid, &txn->locker)) != 0)
171 __os_free(env, txn->mgrp);
172 __os_free(env, txn);
175 ENV_LEAVE(env, ip);