Lines Matching refs:key

237 __ham_delete(dbp, txn, key, flags)
240 DBT *key;
250 __db_delchk(dbp, key, flags, F_ISSET(dbp, DB_AM_RDONLY))) != 0)
256 DEBUG_LWRITE(dbc, txn, "ham_delete", key, NULL, flags);
264 if ((ret = __ham_lookup(dbc, key, 0, DB_LOCK_WRITE)) == 0)
506 __ham_c_get(dbc, key, data, flags)
508 DBT *key;
518 flags == DB_SET || flags == DB_SET_RANGE ? key : NULL,
526 __db_cgetchk(dbp, key, data, flags, IS_VALID(hcp))) != 0)
579 ret = __ham_lookup(dbc, key, 0, lock_type);
594 * check for big key/data pair.
600 /* Get the key. */
602 H_KEYINDEX(hcp->bndx), key, &dbc->rkey.data,
660 __ham_c_put(dbc, key, data, flags)
662 DBT *key;
675 flags == DB_KEYFIRST || flags == DB_KEYLAST ? key : NULL,
679 if ((ret = __db_cputchk(dbp, key, data, flags,
715 nbytes = (ISBIG(hcp, key->size) ? HOFFPAGE_PSIZE :
716 HKEYDATA_PSIZE(key->size)) +
720 key, nbytes, DB_LOCK_WRITE)) == DB_NOTFOUND) {
732 * A partial put, but the key does not exist
750 ret = __ham_add_el(dbc, key, myval, H_KEYDATA);
976 * If we are retrieving a specific key/data pair, then we
1112 * Given a key and a cursor, sets the cursor to the page/ndx on which
1113 * the key resides. If the key is found, the cursor H_OK flag is set
1115 * If the key is not found, the H_OK flag is not set. If the sought
1121 __ham_lookup(dbc, key, sought, mode)
1123 const DBT *key;
1138 * as we cycle through the pages looking for the key.
1144 hcp->bucket = __ham_call_hash(hcp, (u_int8_t *)key->data, key->size);
1156 if (tlen == key->size) {
1160 key, pgno, tlen, NULL, &match)) != 0)
1169 if (key->size == LEN_HKEY(hcp->pagep,
1171 memcmp(key->data,
1172 HKEYDATA_DATA(hk), key->size) == 0) {