Lines Matching defs:txnp
104 DB_TXN *txnp;
129 txnp = NULL;
132 dbenv->txn_begin(dbenv, NULL, &txnp, 0)) != 0)
134 if ((ret = dbp->cursor(dbp, txnp, &dbcp, 0)) != 0)
157 if ((ret = txnp->commit(txnp, 0)) != 0)
183 DB_TXN *txnp;
194 txnp = NULL;
209 if (txnp != NULL) {
210 ret = txnp->commit(txnp, 0);
211 txnp = NULL;
216 dbenv->txn_begin(dbenv, NULL, &txnp, 0)) != 0)
221 switch (ret = dbp->put(dbp, txnp, &key, &data, 0)) {
231 if (txnp != NULL)
232 ret = txnp->commit(txnp, 0);
237 err: if (txnp != NULL)
238 (void)txnp->abort(txnp);
251 DB_TXN *txnp;
258 txnp = NULL;
352 if ((ret = dbenv->txn_begin(dbenv, NULL, &txnp, 0)) != 0)
356 dbp, txnp, DATABASE, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
358 if (txnp != NULL)
359 (void)txnp->abort(txnp);
363 if (txnp != NULL)
364 ret = txnp->commit(txnp, 0);
365 txnp = NULL;