Lines Matching defs:env
35 ENV *env;
38 env = dbp->env;
45 __db_errx(env, "DB->truncate forbidden on secondary indices");
48 if ((ret = __db_fchk(env, "DB->truncate", flags, 0)) != 0)
51 ENV_ENTER(env, ip);
58 __db_errx(env,
64 if (IS_REP_MASTER(env))
65 DB_TEST_WAIT(env, env->test_check);
68 handle_check = IS_ENV_REPLICATED(env);
80 ret = __db_rdonly(env, "DB->truncate");
89 if ((ret = __txn_begin(env, ip, NULL, &txn, 0)) != 0)
101 (t_ret = __db_txn_auto_resolve(env, txn, 0, ret)) && ret == 0)
105 if (handle_check && (t_ret = __env_db_rep_exit(env)) != 0 && ret == 0)
108 ENV_LEAVE(env, ip);
128 ENV *env;
132 env = dbp->env;
174 ret = __db_unknown_type(env, "DB->truncate", dbp->type);
199 ENV *env;
202 env = dbp->env;
204 MUTEX_LOCK(env, env->mtx_dblist);
205 FIND_FIRST_DB_MATCH(env, dbp, ldbp);
209 MUTEX_LOCK(env, dbp->mutex);
215 MUTEX_UNLOCK(env, dbp->mutex);
217 MUTEX_UNLOCK(env, env->mtx_dblist);