cp = TAILQ_FIRST(&ldbp->curs_queue);
__ham_get(dbp, txn, key, data, flags)	DB *dbp;	DB_TXN *txn;	DBT *key;	DBT *data;	int flags;{	DB *ldbp;	DBC *cp;	HTAB *hashp;	HASH_CURSOR *hcp;	int ret, t_ret;	DEBUG_LREAD(dbp, txn, "ham_get", key, NULL, flags);	if ((ret = __db_getchk(dbp, key, data, flags)) != 0)		return (ret);	ldbp = dbp;	if (F_ISSET(dbp, DB_AM_THREAD) &&	    (ret = __db_gethandle(dbp, __ham_hdup, &ldbp)) != 0)		return (ret);	hashp = (HTAB *)ldbp->internal;	SET_LOCKER(ldbp, txn);	GET_META(ldbp, hashp);	cp = TAILQ_FIRST(&ldbp->curs_queue);	hashp->hash_accesses++;	hcp = (HASH_CURSOR *)TAILQ_FIRST(&ldbp->curs_queue)->internal;	if ((ret = __ham_lookup(hashp, hcp, key, 0, DB_LOCK_READ)) == 0)		if (F_ISSET(hcp, H_OK))			ret = __ham_dup_return(hashp, hcp, data, DB_FIRST);		else /* Key was not found */			ret = DB_NOTFOUND;	if ((t_ret = __ham_item_done(hashp, hcp, 0)) != 0 && ret == 0)		ret = t_ret;	RELEASE_META(ldbp, hashp);	if (F_ISSET(dbp, DB_AM_THREAD))		__db_puthandle(ldbp);	return (ret);}