Lines Matching refs:cursor

46 /* Discard the current page/lock held by a cursor. */
59 /* If the cursor references a deleted record. */
68 /* If the cursor and index combination references a deleted record. */
82 * must be the same. For the last test, as the saved copy of the cursor
83 * will not have a valid page pointer, we use the cursor's.
86 #define POSSIBLE_DUPLICATE(cursor, saved_copy) \
87 ((cursor)->pgno == (saved_copy).pgno && \
88 ((cursor)->indx == (saved_copy).indx || \
89 ((cursor)->dpgno == PGNO_INVALID && \
91 (cursor)->page->inp[(cursor)->indx] == \
92 (cursor)->page->inp[(saved_copy).indx])))
96 * Initialize internal cursor structure.
117 * Initialize the access private portion of a cursor
173 * Close down the cursor from a single use.
188 * If a cursor deleted a btree key, perform the actual deletion.
203 __db_err(dbp->dbenv, "btree cursor close: stack not empty");
214 * Close a single cursor -- internal version.
228 * Delete using a cursor.
256 * cursor or an immediate writer.
269 * We don't physically delete the record until the cursor moves,
286 * in-cursor delete flags. We don't need to lock it as we've already
342 * Get using a cursor (btree).
379 * Return a cursor's record number. It has nothing to do with the
380 * cursor get code except that it's been rammed into the interface.
390 * Initialize the cursor for a new retrieval. Clear the cursor's
572 * If the previous cursor record has been deleted, physically delete
575 * restore the cursor, the deleted flag is cleared. This is because,
577 * cursor, we might try to repeat the page modification when closing
578 * the cursor.
651 /* Save the last interesting cursor position. */
677 * we're doing an insert, set the cursor to the last item and
705 * Return the record number for a cursor.
752 * Put using a cursor.
784 * cursor or an immediate writer. If it's a regular writer,
802 * cursor, we have to build one.
819 * cursor entries are valid, they point to the same entries as
829 * Restore the cursor to its original value. This is necessary
832 * and we have to ensure this cursor is adjusted appropriately,
842 * Initialize the cursor for a new retrieval. Clear the cursor's
994 * It's also possible that we are the cursor that had the
1005 * Update the cursor to point to the new entry. The new entry was
1015 * If the previous cursor record has been deleted, physically delete
1018 * restore the cursor, the deleted flag is cleared. This is because,
1020 * cursor, we might try to repeat the page modification when closing
1021 * the cursor.
1541 * Initialize the cursor to reference it. This has to be done
1617 /* Update the cursor's duplicate information. */
1626 * Actually do the cursor deletion.
1657 * If the item is referenced by another cursor, set that cursor's
1662 * be called here. Either we are closing the cursor or we've moved
1664 * already removed the cursor from the active queue, so we won't see
1875 * Acquire a full stack for a cursor.