Lines Matching defs:lock
74 DB_LOCK lock;
91 * an item, we have to lock the entire tree, regardless. See btree.h
95 * write lock on a page before getting it. This depends on how deep it
97 * if we need to lock the root page we may have to upgrade it later,
98 * because we won't get the correct lock initially.
105 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
108 (void)__BT_LPUT(dbc, lock);
113 * Decide if we need to save this page; if we do, write lock it.
114 * We deliberately don't lock-couple on this call. If the tree
117 * each one gets a read lock and then blocks the other's attempt
118 * for a write lock.
124 (void)__BT_LPUT(dbc, lock);
125 if ((ret = __bam_lget(dbc, 0, pg, DB_LOCK_WRITE, &lock)) != 0)
128 (void)__BT_LPUT(dbc, lock);
158 (void)__BT_LPUT(dbc, lock);
201 BT_STK_ENTER(cp, h, recno * P_INDX, lock, ret);
217 BT_STK_ENTER(cp, h, recno, lock, ret);
236 BT_STK_ENTER(cp, h, indx, lock, ret);
239 BT_STK_PUSH(cp, h, indx, lock, ret);
244 __bam_lget(dbc, 0, pg, DB_LOCK_WRITE, &lock)) != 0)
249 * page in the stack. If we do, write lock it and
261 DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
333 DB_LOCK lock;
341 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0)
349 (void)__BT_TLPUT(dbc, lock);