Lines Matching refs:dbc
71 __bam_new(dbc, type, pagepp) in __bam_new() argument
72 DBC *dbc; in __bam_new()
83 dbp = dbc->dbp;
89 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_WRITE, &metalock)) != 0)
107 if (DB_LOGGING(dbc)) {
108 if ((ret = __bam_pg_alloc_log(dbp->dbenv->lg_info, dbc->txn,
116 (void)__BT_TLPUT(dbc, metalock);
127 (void)__BT_TLPUT(dbc, metalock);
138 __bam_lput(dbc, lock) in __bam_lput() argument
139 DBC *dbc; in __bam_lput()
142 return (__BT_LPUT(dbc, lock));
152 __bam_free(dbc, h) in __bam_free() argument
153 DBC *dbc; in __bam_free()
164 dbp = dbc->dbp;
174 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_WRITE, &metalock)) != 0)
177 (void)__BT_TLPUT(dbc, metalock);
182 if (DB_LOGGING(dbc)) {
187 dbc->txn, &meta->lsn, 0, dbp->log_fileid, h->pgno,
190 (void)__BT_TLPUT(dbc, metalock);
216 if ((t_ret = __BT_TLPUT(dbc, metalock)) != 0)
239 __bam_lt(dbc) in __bam_lt() argument
240 DBC *dbc; in __bam_lt()
245 dbp = dbc->dbp;
248 lock_vec(dbp->dbenv->lk_info, dbc->locker, 0, &req, 1, NULL);
262 __bam_lget(dbc, do_couple, pgno, mode, lockp) in __bam_lget() argument
263 DBC *dbc; in __bam_lget()
273 dbp = dbc->dbp;
280 dbc->lock.pgno = pgno;
289 couple[0].obj = &dbc->lock_dbt;
294 if (dbc->txn == NULL)
296 dbc->locker, 0, couple, 2, NULL);
299 dbc->txn, 0, couple, 2, NULL);
302 __BT_LPUT(dbc, *lockp);
308 if (dbc->txn == NULL)
310 dbc->locker, 0, &dbc->lock_dbt, mode, lockp);
313 dbc->txn, 0, &dbc->lock_dbt, mode, lockp);