Lines Matching refs:lock
206 if (hcp->lock && hcp->dbc->txn == NULL)
207 (void)lock_put(hcp->dbc->dbp->dbenv->lk_info, hcp->lock);
216 hcp->lock = 0;
1509 "free_ovflpage: unable to lock meta data page %s\n",
1766 * is no lock held, then if we are locking, we should get the lock.
1767 * If there is a lock held and it's for the current bucket, we don't
1768 * need to do anything. If there is a lock, but it's for a different
1772 if (hcp->lock != 0 && hcp->lbucket != hcp->bucket) {
1774 * If this is the original lock, don't release it,
1779 lock_put(dbp->dbenv->lk_info, hcp->lock)) != 0)
1782 hcp->lock = 0;
1784 if (hcp->lock == 0 && (ret = __ham_lock_bucket(dbc, mode)) != 0)
1853 * Get the lock on a particular bucket.
1864 dbc->lock.pgno = (db_pgno_t)(hcp->bucket);
1867 &dbc->lock_dbt, mode, &hcp->lock);
1870 &dbc->lock_dbt, mode, &hcp->lock);