Lines Matching refs:txn
18 #include "dbinc/txn.h"
29 __db_truncate_pp(dbp, txn, countp, flags)
31 DB_TXN *txn;
70 (ret = __db_rep_enter(dbp, 1, 0, txn != NULL)) != 0) {
88 if (IS_DB_AUTO_COMMIT(dbp, txn)) {
89 if ((ret = __txn_begin(env, ip, NULL, &txn, 0)) != 0)
95 if ((ret = __db_check_txn(dbp, txn, DB_LOCK_INVALIDID, 0)) != 0)
98 ret = __db_truncate(dbp, ip, txn, countp);
101 (t_ret = __db_txn_auto_resolve(env, txn, 0, ret)) && ret == 0)
120 __db_truncate(dbp, ip, txn, countp)
123 DB_TXN *txn;
144 for (; sdbp != NULL && ret == 0; ret = __db_s_next(&sdbp, txn))
145 if ((ret = __db_truncate(sdbp, ip, txn, &scount)) != 0)
148 (void)__db_s_done(sdbp, txn);
156 if ((ret = __db_cursor(dbp, ip, txn, &dbc, 0)) != 0)
159 DEBUG_LWRITE(dbc, txn, "DB->truncate", NULL, NULL, 0);