Lines Matching refs:bucket
546 if (hcp->bucket != BUCKET_INVALID) {
558 if (hcp->bucket == BUCKET_INVALID)
566 if (hcp->bucket == BUCKET_INVALID)
567 hcp->bucket = 0;
614 * Ran out of entries in a bucket; change buckets.
620 if (hcp->bucket == 0) {
624 hcp->bucket--;
633 hcp->bucket++;
636 if (hcp->bucket > hcp->hdr->max_bucket) {
813 * we'll do between then and now is increment max bucket and then
848 * of the spare split bucket to the next bucket.
865 "hash: Cannot allocate new bucket. Pages exhausted.");
869 /* Relocate records to the new bucket */
882 u_int32_t n, bucket;
886 bucket = n & hcp->hdr->high_mask;
887 if (bucket > hcp->hdr->max_bucket)
888 bucket = bucket & hcp->hdr->low_mask;
889 return (bucket);
1144 hcp->bucket = __ham_call_hash(hcp, (u_int8_t *)key->data, key->size);
1301 lcp->bucket = hcp->bucket;