Lines Matching refs:key

58  *	Delete the item(s) referenced by a key.
60 * Return RET_SPECIAL if the key is not found.
63 __bt_delete(dbp, key, flags)
65 const DBT *key;
89 status = __bt_bdelete(t, key);
159 * Find the first occurrence of the key in the tree. Toss the
164 if ((e = __bt_search(t, &c->key, &exact)) == NULL)
223 if ((e = __bt_search(t, &c->key, &exact)) == NULL)
281 * Delete all key/data pairs matching the specified key.
285 * key: key to delete
288 * RET_ERROR, RET_SUCCESS and RET_SPECIAL if the key not found.
291 __bt_bdelete(t, key)
293 const DBT *key;
302 loop: if ((e = __bt_search(t, key, &exact)) == NULL)
310 * Delete forward, then delete backward, from the found key. If
312 * the key search again, so that we get them all.
317 if (__bt_dleaf(t, key, h, e->index)) {
330 } while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
336 /* Delete from the key to the beginning of the page. */
338 if (__bt_cmp(t, key, e) != 0)
340 if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
394 * a page, so we have to delete the key from the parent page.
417 * Free the parent if it has only the one key and it's not the
432 /* Pack remaining key items at the end of the page. */
466 * key: referenced key
474 __bt_dleaf(t, key, h, idx)
476 const DBT *key;
490 __bt_curdel(t, key, h, idx))
501 /* Pack the remaining key/data items at the end of the page. */
531 * key: referenced key (or NULL)
539 __bt_curdel(t, key, h, idx)
541 const DBT *key;
552 * Otherwise, copy the key into the cursor area.
561 * provided a copy of the key, i.e. the user is deleting
564 if (key == NULL) {
568 &c->key, &c->key, NULL, NULL, 1)) != RET_SUCCESS)
571 key = &c->key;
573 /* Check previous key, if not at the beginning of the page. */
577 if (__bt_cmp(t, key, &e) == 0) {
582 /* Check next key, if not at the end of the page. */
586 if (__bt_cmp(t, key, &e) == 0) {
591 /* Check previous key if at the beginning of the page. */
597 if (__bt_cmp(t, key, &e) == 0) {
603 /* Check next key if at the end of the page. */
609 if (__bt_cmp(t, key, &e) == 0) {
622 __bt_ret(t, &e, &c->key, &c->key, NULL, NULL, 1)) == RET_SUCCESS) {