Lines Matching defs:lock
82 DB_LOCK lock;
101 * if we're modifying record numbers, we have to lock the entire tree
105 * write lock on a page before getting it. This depends on how deep it
107 * if we need to lock the root page we may have to upgrade it later,
108 * because we won't get the correct lock initially.
115 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
118 (void)__BT_LPUT(dbc, lock);
123 * Decide if we need to save this page; if we do, write lock it.
124 * We deliberately don't lock-couple on this call. If the tree
127 * each one gets a read lock and then blocks the other's attempt
128 * for a write lock.
134 (void)__BT_LPUT(dbc, lock);
135 if ((ret = __bam_lget(dbc, 0, pg, DB_LOCK_WRITE, &lock)) != 0)
138 (void)__BT_LPUT(dbc, lock);
189 BT_STK_ENTER(cp, h, base, lock, ret);
213 BT_STK_ENTER(cp, h, indx, lock, ret);
216 BT_STK_PUSH(cp, h, indx, lock, ret);
221 __bam_lget(dbc, 0, pg, DB_LOCK_WRITE, &lock)) != 0)
226 * page in the return stack. If so, lock it and never
238 DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
293 BT_STK_ENTER(cp, h, indx, lock, ret);
298 (void)__BT_LPUT(dbc, lock);
330 if (epg->lock != LOCK_INVALID)
332 (void)__BT_LPUT(dbc, epg->lock);
334 (void)__BT_TLPUT(dbc, epg->lock);