Lines Matching defs:env
41 ENV *env;
44 env = dbenv->env;
48 ENV_ILLEGAL_BEFORE_OPEN(env, "DB_ENV->dbrename");
54 if ((ret = __db_fchk(env, "DB->rename", flags, DB_AUTO_COMMIT)) != 0)
57 ENV_ENTER(env, ip);
60 handle_check = IS_ENV_REPLICATED(env);
61 if (handle_check && (ret = __env_rep_enter(env, 1)) != 0) {
70 if (IS_ENV_AUTO_COMMIT(env, txn, flags)) {
71 if ((ret = __db_txn_auto_init(env, ip, &txn)) != 0)
75 if (txn != NULL && !TXN_ON(env) &&
76 (!CDB_LOCKING(env) || !F_ISSET(txn, TXN_CDSGROUP))) {
77 ret = __db_not_txn_env(env);
83 if ((ret = __db_create_internal(&dbp, env, 0)) != 0)
108 __db_txn_auto_resolve(env, txn, 0, ret)) != 0 && ret == 0)
126 __txn_closeevent(env, txn, dbp)) != 0 && ret == 0)
130 if (handle_check && (t_ret = __env_db_rep_exit(env)) != 0 && ret == 0)
133 ENV_LEAVE(env, ip);
151 ENV *env;
154 env = dbp->env;
168 return (__db_mi_open(env, "DB->rename", 1));
171 if ((ret = __db_fchk(env, "DB->rename", flags, 0)) != 0)
178 ENV_ENTER(env, ip);
180 handle_check = IS_ENV_REPLICATED(env);
189 if (handle_check && (t_ret = __env_db_rep_exit(env)) != 0 && ret == 0)
191 err: ENV_LEAVE(env, ip);
216 __txn_closeevent(dbp->env, txn, dbp)) != 0 && ret == 0)
238 ENV *env;
242 env = dbp->env;
248 __db_errx(env, "Rename on temporary files invalid");
269 if ((ret = __db_appname(env,
302 DB_ASSERT(env, dbp->log_filename == NULL ||
309 __os_free(env, real_name);
326 ENV *env;
332 env = dbp->env;
357 if ((ret = __fop_lock_handle(env,
384 __txn_closeevent(env, txn, mdbp)) != 0 && ret == 0)